Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Auth0 login integration #508

Open
pamruthav opened this issue May 7, 2024 · 0 comments
Open

Custom Auth0 login integration #508

pamruthav opened this issue May 7, 2024 · 0 comments

Comments

@pamruthav
Copy link

pamruthav commented May 7, 2024

Im following this setup to integrate auth0 cusotm login page

https://auth0.com/docs/quickstart/spa/vuejs/01-login

main.ts

app.use(
  createAuth0({
    domain: "{yourDomain}",
    clientId: "{yourClientId}",
    authorizationParams: {
      redirect_uri: window.location.origin
    }
  })
);

Im looking to implement user session login check using following snippet
const { loginWithRedirect, user, isAuthenticated } = useAuth0();

what is the best place to put this user session check so i can redirect to auth0 directly when user session is not present without showing the default "click here to sso page".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant