Documentation ¶
Index ¶
- Variables
- func CreateExpiringPublicToken(exp time.Time, claims map[string]any) (string, error)
- func CreatePublicToken(claims map[string]any) (string, error)
- func CreateToken(u *model.User) (string, error)
- func Init(ds model.DataStore)
- func TouchToken(token jwt.Token) (string, error)
- func Validate(tokenStr string) (map[string]interface{}, error)
- func WithAdminUser(ctx context.Context, ds model.DataStore) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Secret []byte TokenAuth *jwtauth.JWTAuth )
Functions ¶
func CreateExpiringPublicToken ¶ added in v0.49.0
func CreatePublicToken ¶ added in v0.49.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.