kinde-oss / kinde-auth-nextjs

Kinde NextJS SDK - authentication for server rendered apps
https://docs.kinde.com/developer-tools/sdks/backend/nextjs-sdk/
MIT License
157 stars 24 forks source link

Bug: isAuthenticated() function always gives true, even if token is expired #225

Closed mohitsinhchavda closed 1 month ago

mohitsinhchavda commented 1 month ago

Prerequisites

Describe the issue

isAuthenticated() function always gives true, even if token is expired.

Library URL

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

Library version

2.3.11

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

DanielRivers commented 1 month ago

Thank you @mohitsinhchavda, I can see you raised a PR for this also. There was already one open which resolved this. I have merged it (https://github.com/kinde-oss/kinde-auth-nextjs/pull/223)

I have merge this one and will be in the next release.