Clerk: Getting the OAuth access and/or refresh token of user

The title should say it all. Does Clerk's user interface even include the two?
N
Neto377d ago
useAuth | Clerk
Access the auth state inside your React components.
A
ahkhanjani377d ago
Edit: I now know that in order to get the access token I need to make an API call to the Clerk API. Is the refresh token not stored in Clerk's database and I need to retrieve it from Google?
N
Neto377d ago
const {
sessionId,
getToken,
} = useAuth();
const {
sessionId,
getToken,
} = useAuth();
A
ahkhanjani377d ago
Thanks for your reply. Isn't this the session token? I don't think it's what I'm looking for
N
Neto377d ago
i think clerk abstracts that away from you
JP
James Perkins376d ago
if you are after the OAuth provider token there is a backend api call that retrieved it. (e.g twitch oauth token to interact with their api)
Want results from more Discord servers?
Add your server
More Posts
Type 'string | null' is not assignable to type 'string | undefined'.Argument of type 'Quest' is not assignable to parameter of type '{ id: string; title?: string | undeMatching types to Prisma modelsI have a T3 boilerplate with Prisma and PlanetScale as per Theo's T3 Stack Tutorial. I'm trying to cneed key value pair database like redisneed key value pair datastore like redis which is similar to python dictionary and should be cleint How do I solve this errorI have installed daisyui already. Already tried the suggested fix"Unsafe assignment of `any` valueI am using latest create-t3-app with prisma, tailwind nextAuth and trpcClerk + Next.js app router <SignedOut> children not rendered after <UserButton> sign outHi there! I'm currently building an app with Clerk and I've got signing in working however when I siturbo repo built lint errorI was setting up ct3turbo when I saw the GitHub action workflow is showing errors, how do I fix it?changing col-span with template literalany idea why this isnt working?[Solved] T3 Stack PWA ??Does anybody know how to turn a t3 site into a PWA? I am using next-pwa but I am getting a few errortRPC Error: Invalid hook call.Sorry for the noob question I just cant figure out how to do this I have the following tRPC route: eStack?Hey how would I go about creating a website where you can post minecraft servers and include a imageHow would I order by the role?Hello, I'm trying to set up an API, where I return some users. I've got it working, where it returnsPrisma Create with Connect IssueHey! I wasn't able to find another thread explaining this, but I'd love help with this! I have twoGenerating image background jobI'm making a game where you can create levels in HTML5 Canvas and upload them to the api. I will nee