Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SdtClaims ¶
type SdtClaims struct { Name string `json:"name"` Role string `json:"role"` jwt_lib.StandardClaims }
SdtClaims defines the custom claims
type Utils ¶
type Utils struct { }
func (*Utils) GenerateJWT ¶
GenerateJWT generates token from the given information
func (*Utils) ValidateObjectID ¶
ValidateObjectID checks the given ID if it's an object id or not
Click to show internal directories.
Click to hide internal directories.