Skip to content

Commit ab5fab0

Browse files
committed
fix: handle authentication errors in AuthModal component
1 parent 54ddde3 commit ab5fab0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/features/auth/components/AuthModal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ export const AuthModal = ({ showAuth }: AuthModalProps) => {
3535
.then(({ authLink }) => {
3636
window.open(authLink, BUILD_TARGET === 'web' ? '_self' : '_blank')
3737
})
38+
.catch(() => {
39+
setAuthError({
40+
message: 'Something went wrong, Please try again',
41+
})
42+
})
3843
},
3944
[getOauthLink]
4045
)

0 commit comments

Comments
 (0)