//
pkg.gl
Category
github.com/tullo/snptx
internal
platform
auth
package
0.1.4
Repository:
https://github.com/tullo/snptx.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
3
Files
52 SLOC
#
Functions
NewClaims
NewClaims constructs a Claims value for the identified user.
#
Constants
Key
Key is used to store/retrieve a Claims value from a context.Context.
RoleAdmin
These are the expected values for Claims.Roles.
RoleUser
These are the expected values for Claims.Roles.
#
Structs
Claims
Claims represents the authorization claims transmitted via a JWT.