Skip to content

Commit

Permalink
chore: remove redirection to login auth for reset password if auth en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
adrienne-deriv committed Jan 24, 2025
1 parent fb7cf2e commit 7527020
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ResetPasswordModal = observer(() => {
} = ui;

const { isDesktop } = useDevice();
const { isOAuth2Enabled } = useOauth2({});
const { isOAuth2Enabled } = useOauth2({ handleLogout: async () => {} });

const onResetComplete = (
error: TSocketError<'reset_password'>['error'] | null,
Expand Down Expand Up @@ -56,7 +56,7 @@ const ResetPasswordModal = observer(() => {
if (isOAuth2Enabled) {
requestOidcAuthentication({
redirectCallbackUri: `${window.location.origin}/callback`,
}).then(() => redirectToLogin(false, getLanguage(), false));
});
} else {
redirectToLogin(false, getLanguage(), false);
}
Expand Down

0 comments on commit 7527020

Please sign in to comment.