Closed
Description
Preliminary Checks
-
I have reviewed the documentation: https://clerk.com/docs
-
I have searched for existing issues: https://github.com/clerk/javascript/issues
-
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
-
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://github.com/divine/clerk-nuxt-quickstart
Publishable key
not_related
Description
Steps to reproduce:
- Fork reproduction url
- Set publishable key and secret key in .env
npm install && npm run dev
- Visit the dev site
- Sign in
- Click on fetch token button
- See console error: Error fetching token: TypeError: getToken is not a function
- Is this even tested?
Expected behavior:
Should return: a promise that resolves to the token. * https://clerk.com/docs/hooks/use-auth#returns
async (options) => {
const loadedClerk = await clerkLoaded(clerk);
if (!loadedClerk.session) {
return null;
}
return loadedClerk.session.getToken(options);
}
Actual behavior:
Error fetching token: TypeError: getToken is not a function
Environment
not applicable