oauth

package
v0.0.0-...-baa3096 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const JWT_ADMIN_ROLE = "Role.Admin"
View Source
const JWT_USER_ROLE = "Role.User"

Variables

This section is empty.

Functions

func CheckAdmin

func CheckAdmin(token *jwt.Token) bool

func GetJWTFromTokenString

func GetJWTFromTokenString(token string) (*jwt.Token, error)

func GetJWTRoleFromToken

func GetJWTRoleFromToken(token *jwt.Token) string

func JWTTokenIsValid

func JWTTokenIsValid(token *jwt.Token) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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