fix: skew of 30 seconds for JWT validation
This commit is contained in:
committed by
Steve Chavez
parent
887948d259
commit
c10ba8e214
@@ -63,7 +63,7 @@ parseToken AppConfig{..} token time = do
|
||||
liftEither . mapLeft jwtClaimsError $ JSON.toJSON <$> eitherClaims
|
||||
where
|
||||
validation =
|
||||
JWT.defaultJWTValidationSettings audienceCheck & set JWT.allowedSkew 1
|
||||
JWT.defaultJWTValidationSettings audienceCheck & set JWT.allowedSkew 30
|
||||
|
||||
audienceCheck :: JWT.StringOrURI -> Bool
|
||||
audienceCheck = maybe (const True) (==) configJwtAudience
|
||||
|
||||
Reference in New Issue
Block a user