sessionModel

package
v0.0.0-...-506abc5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRIVATE_KEY = "cert/private_key.pem"
	PUBLIC_KEY  = "cert/public_key.pub"
)

Variables

This section is empty.

Functions

func CheckRefreshToken

func CheckRefreshToken(token string) (bool, error)

func Delete

func Delete(token string) error

func GetValueByKey

func GetValueByKey(token string) (string, error)

func NewAccessToken

func NewAccessToken(timeDuration int64) (string, error)
func NewRecoveryLink(value string) (string, error)

func NewRefreshToken

func NewRefreshToken(timeDuration time.Duration) (string, error)

func VerifyToken

func VerifyToken(tokenString string) (*jwt.Token, error)

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session model

Jump to

Keyboard shortcuts

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