Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: auth0 redirect uri
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jul 26, 2021
1 parent 230e124 commit 8336a32
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/auth/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ export default function useAuth() {
isAuthenticated: !!window.REEARTH_E2E_ACCESS_TOKEN || (isAuthenticated && !error),
isLoading,
error: error?.message,
login: () =>
loginWithRedirect({
redirectUri: `${window.location.pathname === "/" ? "" : window.location.pathname}${
window.location.search
}`,
}),
login: () => loginWithRedirect(),
logout: () =>
logout({
returnTo: error
Expand Down

0 comments on commit 8336a32

Please sign in to comment.