How do I force a user to login again?

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

3 Likes