Skip to content

Commit

Permalink
pr
Browse files Browse the repository at this point in the history
  • Loading branch information
doregg committed Jan 4, 2024
1 parent f0b775d commit a290072
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/vue/src/auth/mapAuthState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export const useFrontegg = () => {
/**
* Redirect to login page if the user is not authenticated
* @param redirectUrl the url to redirect after hosted login
* @param isRequestHostedLoginAuthorizedV2 whether to use the 2nd version of hosted login authorized flow
*/
export const useFronteggAuthGuard = (options?: FronteggAuthGuardOptions) => {
const { redirectUrl } = options ?? {}
Expand All @@ -240,7 +239,6 @@ export const useFronteggAuthGuard = (options?: FronteggAuthGuardOptions) => {
if (redirectUrl) {
localStorage.setItem(FRONTEGG_AFTER_AUTH_REDIRECT_URL, redirectUrl);
}

fronteggAuth.loginActions.requestHostedLoginAuthorize();
} else {
router.push(authState.routes.loginUrl);
Expand Down

0 comments on commit a290072

Please sign in to comment.