session

package
v1.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID        string
	CreatedAt time.Time
	ExpiresAt time.Time
}

func Create

func Create(forUser *user.User) (*Session, error)

func Parse added in v1.13.0

func Parse(signedToken string) (*Session, error)

func (Session) SignJWT

func (s Session) SignJWT() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL