Open
Description
Prerequisites
- I have searched the repository’s issues and Kinde community to ensure my issue isn’t a duplicate
- I have checked the latest version of the library to replicate my issue
- I have read the contributing guidelines
- I agree to the terms within the code of conduct
Describe the issue
Steps
- Have an app with the default kinde middleware protecting most routes.
- After session is expired
- Front-end code sends a
POST
request to one of the api routes (or invoked a server action) - Middleware redirects to
POST /api/auth/login
Expected
The handler redirects to login, or better yet, allows to handle it otherwise to inform the front-end that session has expired and user needs to be logged in again.
Actual
🔴/api/auth/login?post_login_redirect_url=... 405 Method Not Allowed
Library URL
https://github.com/kinde-oss/kinde-auth-react
Library version
2.2.10
Operating system(s)
macOS
Operating system version(s)
23E224
Further environment details
No response
Reproducible test case URL
No response
Additional information
No response
Activity