fix: Expired refreshToken should invalidate session, not check SSO retry task
This commit is contained in:
@@ -105,9 +105,9 @@ class UserAuthentication extends IdModel {
|
|||||||
"authenticationProvider must exist for user authentication"
|
"authenticationProvider must exist for user authentication"
|
||||||
);
|
);
|
||||||
|
|
||||||
await this.refreshAccessTokenIfNeeded(authenticationProvider, options);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
await this.refreshAccessTokenIfNeeded(authenticationProvider, options);
|
||||||
|
|
||||||
const client = authenticationProvider.oauthClient;
|
const client = authenticationProvider.oauthClient;
|
||||||
if (client) {
|
if (client) {
|
||||||
await client.userInfo(this.accessToken);
|
await client.userInfo(this.accessToken);
|
||||||
|
|||||||
Reference in New Issue
Block a user