tokens

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthToken added in v0.6.0

func NewAuthToken(user *auth.User, sessionID *uuid.UUID) (*string, error)

NewAuthToken generates and returns a new authentication token

func NewToken added in v0.6.1

func NewToken(payload jwt.MapClaims, key string, duration int64) (string, error)

NewToken generates and returns new HS256 signed JWT token.

func ParseJWT added in v0.6.1

func ParseJWT(token string, keys []string) jwt.MapClaims

ParseJWT verifies and parses JWT token and returns its claims.

Types

This section is empty.

Jump to

Keyboard shortcuts

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