Skip to content

[Auth0] logout then login skips redirection to login pageΒ #638

Closed
@jchoi2x

Description

@jchoi2x

out

Describe the bug
When a user first logs in using auth0, they are redirected correctly to auth0's login page and redirected back and authenticated as expected. If the user logs out, then clicks on login again, next-auth doesn't redirect the user to login page again; it automatically logs the user in.

This can be reproduced on the example application

Steps to reproduce

  1. In a new incognito window navigate to https://next-auth-example.now.sh
  2. Login using auth0
  3. When navigated back to https://next-auth-example.now.sh and authenticated, click on the sign out button.
  4. Once signed out, click on Sign In again (The user is not sent to the login page)

Expected behavior
The user is redirected to the login page whenever they click on sign in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions