kinde-auth-react icon indicating copy to clipboard operation
kinde-auth-react copied to clipboard

Bug: (Non-persistent token is not working)

Open Upatric opened this issue 1 month ago • 2 comments

Prerequisites

  • [x] I have searched the repository’s issues and Kinde community to ensure my issue isn’t a duplicate
  • [x] I have checked the latest version of the library to replicate my issue
  • [x] I have read the contributing guidelines
  • [x] I agree to the terms within the code of conduct

Describe the issue

The non-persistent token is not functioning as expected. I’ve configured the non-persistent option in the application session settings on the dashboard. I confirmed that the access token includes "ksp": { "persistent": false }. However, I am still not being logged out when I close the browser.

Library URL

https://github.com/kinde-oss/kinde-auth-react

Library version

5.9.0

Operating system(s)

Windows

Operating system version(s)

Windows 11

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

Upatric avatar Nov 06 '25 04:11 Upatric

@Upatric Thank you for raising. Could you please share what your provider definition looks like? Please remove any sensitive content.

DanielRivers avatar Nov 10 '25 17:11 DanielRivers

@DanielRivers , sorry for not replying sooner. Here's my provider definition

<KindeProvider
      clientId={import.meta.env.VITE_KINDE_CLIENT_ID}
      domain={import.meta.env.VITE_KINDE_DOMAIN}
      logoutUri={window.location.origin}
      redirectUri={window.location.origin}
 >

My .env

VITE_KINDE_CLIENT_ID=5e7dfde0c0...
VITE_KINDE_DOMAIN=https://mybusiness_name.kinde.com
VITE_KINDE_REDIRECT_URL=http://localhost:3000
VITE_KINDE_LOGOUT_URL=http://localhost:3000

Upatric avatar Nov 20 '25 04:11 Upatric