refactor: set ExpiredAllowed on loginAuthMw2fa

This commit is contained in:
Derrick Hammer 2024-03-20 14:11:21 -04:00
parent 2528fd0afe
commit 7616d9f7c9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 5 deletions

View File

@ -357,6 +357,7 @@ func (a *AccountAPI) Routes() (*httprouter.Router, error) {
Config: a.config, Config: a.config,
Purpose: account.JWTPurpose2FA, Purpose: account.JWTPurpose2FA,
EmptyAllowed: true, EmptyAllowed: true,
ExpiredAllowed: true,
}) })
authMw := authMiddleware(middleware.AuthMiddlewareOptions{ authMw := authMiddleware(middleware.AuthMiddlewareOptions{