From ecb73057462cd7ba42689a480dfcea63c7fb5a8d Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Tue, 5 Dec 2023 13:31:10 -0500 Subject: [PATCH] add JWTAuth#ValidateOptions method --- jwtauth.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jwtauth.go b/jwtauth.go index 105677b..a03731a 100644 --- a/jwtauth.go +++ b/jwtauth.go @@ -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)) }