Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refreshTokens in Next.js results in ReferenceError: config is not defined #161

Closed
4 tasks done
gitdagray opened this issue May 13, 2024 · 2 comments
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@gitdagray
Copy link

Prerequisites

Describe the issue

Wanted to try out the new refreshTokens as documented here:
https://docs.kinde.com/developer-tools/sdks/backend/nextjs-sdk/#refreshing-kinde-data

await refreshTokens() ...always results in "ReferenceError: config is not defined"

Poked around in the repo: https://github.com/kinde-oss/kinde-auth-nextjs/blob/55de0cae4618fb83bb27d23faa616ec9cebbbff0/src/session/index.js

I don't see where the config object that is accessed on line 35 is defined or imported. It would only reach that spot if another error occurred, but I can't see what that might be yet.

Library URL

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

Library version

2.2.6

Operating system(s)

Windows

Operating system version(s)

Windows 10 Pro

Further environment details

No response

Reproducible test case URL

No response

Additional information

No response

@gitdagray gitdagray added the bug Something isn't working label May 13, 2024
@DanielRivers
Copy link
Contributor

Thanks for raising this.

Your investigation is very helpful, I will likely remove the config check and always console output the error as this is helpful in all situations.

@DanielRivers
Copy link
Contributor

Fixed in 2.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants