Skip to content

Commit fe88cac

Browse files
committed
do not automatically call the signOut method since we now handle it with the timeoutSignal
1 parent f3ef251 commit fe88cac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/packages/core/auth/auth-flow.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ export class UmbAuthFlow {
173173
const response = new TokenResponse(JSON.parse(tokenResponseJson));
174174
if (response.isValid()) {
175175
this.#tokenResponse = response;
176-
} else {
177-
this.signOut();
178176
}
179177
}
180178
}
@@ -376,9 +374,8 @@ export class UmbAuthFlow {
376374
try {
377375
this.#tokenResponse = await this.#tokenHandler.performTokenRequest(this.#configuration, request);
378376
} catch (error) {
379-
// If the token request fails, it means the refresh token is invalid, so we sign the user out.
377+
// If the token request fails, it means the refresh token is invalid
380378
console.error('Token request error', error);
381-
this.signOut();
382379
}
383380
}
384381
}

0 commit comments

Comments
 (0)