jwt

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

func CreateRefreshToken

func CreateRefreshToken() string

func CreateToken

func CreateToken(tokenData *entities.TokenData, permissions []string) (string, time.Time, error)

func DecodeToken

func DecodeToken(tokenString string) (*entities.JWTClaims, error)

func GetAccountIDByJWTToken

func GetAccountIDByJWTToken(token string) (uuid.UUID, 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