session

package
v0.0.0-...-e6e7638 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpiredSession = errors.New("expired session")

Functions

func CreateSessionForUser

func CreateSessionForUser(ctx context.Context, user *usertypes.User, accessToken string) (*types.Session, error)

func IsExpiredSession

func IsExpiredSession(err error) bool

func Parse

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

func Token

func Token(ctx context.Context, sess *types.Session) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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