Documentation ¶
Index ¶
- Variables
- func GenerateAccessToken(sub string, claims map[string]any) ([]byte, error)
- func GeneratePersonalToken(sub string, expiry time.Duration, claims map[string]any) ([]byte, error)
- func GenerateRefreshToken(sub string) ([]byte, error)
- func GenerateTokens(sub string, claims map[string]any) ([]byte, []byte, error)
- func ParseEncoded(encodedToken []byte) (jwx.Token, error)
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var PrivateKey *rsa.PrivateKey = nil
Functions ¶
func GenerateAccessToken ¶
func GeneratePersonalToken ¶
func GenerateRefreshToken ¶
func GenerateTokens ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.