Prerequisites
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
Prerequisites
Describe the issue
Steps
POSTrequest to one of the api routes (or invoked a server action)POST /api/auth/loginExpected
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 AllowedLibrary 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