mirror of
https://github.com/directus/directus.git
synced 2026-02-01 01:45:27 -05:00
Merge pull request #3689 from JH1ller/fix/auth-controller-cookie
fix: mode not correctly set in refresh handler
This commit is contained in:
@@ -99,7 +99,7 @@ router.post(
|
||||
throw new InvalidPayloadException(`"refresh_token" is required in either the JSON payload or Cookie`);
|
||||
}
|
||||
|
||||
const mode: 'json' | 'cookie' = req.body.mode || req.body.refresh_token ? 'json' : 'cookie';
|
||||
const mode: 'json' | 'cookie' = req.body.mode || (req.body.refresh_token ? 'json' : 'cookie');
|
||||
|
||||
const { accessToken, refreshToken, expires } = await authenticationService.refresh(currentRefreshToken);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user