session

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptSession added in v0.0.5

func DecryptSession(ctx context.Context, key [32]byte, box []byte) (*pb.SessionData, error)

func EncryptSession added in v0.0.5

func EncryptSession(ctx context.Context, key [32]byte, sessionData *pb.SessionData) ([]byte, error)

func GenerateSessionToken

func GenerateSessionToken(ctx context.Context, secret [32]byte) (string, error)

func NewSessionData

func NewSessionData() *pb.SessionData

func VerifySessionToken added in v0.0.13

func VerifySessionToken(ctx context.Context, token string, secret [32]byte, ttl time.Duration) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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