We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017ac1c commit 37e8b08Copy full SHA for 37e8b08
app/core/OAuthService/OAuthService.ts
@@ -243,6 +243,9 @@ export class OAuthService {
243
{ ...result, web3AuthNetwork },
244
this.config.authServerUrl,
245
);
246
+ if (!data.id_token) {
247
+ throw new OAuthError('No token found', OAuthErrorType.LoginError);
248
+ }
249
getAuthTokensSuccess = true;
250
} catch (error) {
251
const errorMessage =
@@ -271,10 +274,6 @@ export class OAuthService {
271
274
});
272
275
}
273
276
- if (!data.id_token) {
- throw new OAuthError('No token found', OAuthErrorType.LoginError);
- }
277
-
278
const jwtPayload = JSON.parse(
279
loginHandler.decodeIdToken(data.id_token),
280
) as Partial<OAuthUserInfo>;
0 commit comments