fix: Expired refreshToken should invalidate session, not check SSO retry task

This commit is contained in:
Tom Moor
2022-06-08 08:55:58 +02:00
parent 892146a563
commit 80ad6cfec8

View File

@@ -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);