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

Client refreshHandler is type incompatible with Clerk useAuth (used in documentation) #254

Open
marcos-acosta opened this issue Nov 24, 2024 · 0 comments

Comments

@marcos-acosta
Copy link

In the documentation for using Clerk with Triplit (https://www.triplit.dev/docs/auth/clerk#add-the-clerk-token-to-your-triplit-client), we set the client refreshHandler to Clerk's getToken function. But, getToken() returns a promise which may be null, whereas Triplit requires the promise to always return a string. Since this is in the documentation, I figured something needed updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant