Skip to content

Commit

Permalink
CP-8044: Fix apple sign in infinite loop (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruijialin-avalabs authored and atn4z7 committed Jan 15, 2024
1 parent b7491ad commit 07db803
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core-mobile/app/seedless/store/listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ const registerTokenExpireHandler = async (
): Promise<void> => {
const { dispatch } = listenerApi
const onSessionExpiredHandler = async (e: ErrResponse): Promise<void> => {
if (e.status === 403) {
if (e.status === 403 && e.message.includes('Invalid')) {
// this means the mfaid entered is wrong, we don't need to handle this
// this is handled in the verify code screen
} else if (e.status === 403) {
dispatch(onTokenExpired)
}
}
Expand Down

0 comments on commit 07db803

Please sign in to comment.