Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SecretKey = os.Getenv("SECRET_KEY")
)
Functions ¶
func CheckUserType ¶
func GetAllTokens ¶
func GetAllTokens(user model.TokenizedUserParams) (string, string, error)
func MatchUserTypeToUID ¶
MatchUserTypeToUID : Match Role to userid
Types ¶
type SignedParams ¶
type SignedParams struct { User model.TokenizedUserParams jwt.RegisteredClaims }
func ValidateToken ¶
func ValidateToken(token string) (*SignedParams, error)
ValidateToken validates a token
Click to show internal directories.
Click to hide internal directories.