Skip to content

Commit

Permalink
fix: explicitly redirect user to next page when oauth login succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Anty0 committed Mar 3, 2025
1 parent b4bd484 commit f79b4af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/src/globalContext/useAuthService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ export const useAuthService = (
},
},
{
onSuccess: (response) => {
history.replace(LINKS.AFTER_LOGIN.build());
},
onError: (error) => {
if (error.code === 'third_party_switch_initiated') {
history.replace(LINKS.ACCEPT_AUTH_PROVIDER_CHANGE.build());
Expand Down

0 comments on commit f79b4af

Please sign in to comment.