Documentation ¶
Index ¶
- Constants
- func GetClaim(c *gin.Context, key string) (value interface{}, ok bool)
- func IssueToken(realm string, claims Claims) (token string, refreshToken string, err error)
- func MustVerify(realm string) func(c *gin.Context)
- func RefreshToken(realm string, refreshToken string) (ok bool, newToken string, newRefreshToken string, err error)
- func SetUp(option Option) error
- func TryVerify(realm string) func(c *gin.Context)
- type Claims
- type Option
- type SignatureAlgorithm
Constants ¶
View Source
const ( RS256 = SignatureAlgorithm(jwa.RS256) HS256 = SignatureAlgorithm(jwa.HS256) )
Variables ¶
This section is empty.
Functions ¶
func IssueToken ¶
func MustVerify ¶ added in v1.1.3
func RefreshToken ¶ added in v1.1.0
Types ¶
type SignatureAlgorithm ¶ added in v1.1.0
type SignatureAlgorithm string
Click to show internal directories.
Click to hide internal directories.