Skip to content

Commit

Permalink
add JWTAuth#ValidateOptions method
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Dec 5, 2023
1 parent fc38328 commit ecb7305
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jwtauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func (ja *JWTAuth) Decode(tokenString string) (jwt.Token, error) {
return ja.parse([]byte(tokenString))
}

func (ja *JWTAuth) ValidateOptions() []jwt.ValidateOption {
return ja.validateOptions
}

func (ja *JWTAuth) sign(token jwt.Token) ([]byte, error) {
return jwt.Sign(token, jwt.WithKey(ja.alg, ja.signKey))
}
Expand Down

0 comments on commit ecb7305

Please sign in to comment.