Skip to content

Commit

Permalink
Merge pull request #892 from alexstotsky/upd-auth-token-err-processing
Browse files Browse the repository at this point in the history
(fix) Actualize isAuthTokenGenerationError flag processing
  • Loading branch information
ezewer authored Jan 16, 2025
2 parents bf1403d + 3e8a9c5 commit 3f4ab6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/auth/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function* signIn({ payload }) {
if (error) {
if (error.code === 401) {
const { data } = error
if (data?.isAuthTokenGenerationError) {
if (data?.errorMetadata?.isAuthTokenGenerationError) {
yield put(actions.setUserShouldReLogin(email))
yield put(updateWarningStatus({ id: 'auth.loginEmail.loginTokenExpired' }))
} else {
Expand Down

0 comments on commit 3f4ab6e

Please sign in to comment.