How do I force a user to login again?

I have the 1 click login functionality working. However, after logging in the first time and logging out, the user automatically logs in without the popup coming up. Is there any way to force a user to see the login page again?

I have been reading and it seems to have something to do with refresh tokens. However I am not sure how to implement a solution here.

The platform I am working to build the application on is bubble.io

Hi @mc3,

Thanks for reaching out to the Auth0 Community!

If you want to force a user to log in and prompt them for their credentials again, you can achieve this by including the prompt=login query parameter when making the login request.

Here’s an example of how the URL would look:

https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}&
    prompt=login

Please refer to our Force Reauthentication in OIDC documentation for more information.

Thanks,
Rueben

2 Likes

Go to Sign-in settings. For Browser sign-in settings, select Force users to sign-in to use the browser. Click Save.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.