authService

package
v0.0.0-...-dfd5d66 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CookieExpiresTime = time.Now().Add(time.Minute * 10)
)

Functions

func CreateClaims

func CreateClaims(dbResponse domains.UserDBResponse) (*domains.UserClaims, error)

func CreateToken

func CreateToken(claims *domains.UserClaims) (string, error)

func ParseToken

func ParseToken(signedToken string) (*domains.UserClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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