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?
6 Replies
Neto
Neto2y ago
useAuth | Clerk
Access the auth state inside your React components.
ahkhanjani
ahkhanjani2y 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?
Neto
Neto2y ago
const {
sessionId,
getToken,
} = useAuth();
const {
sessionId,
getToken,
} = useAuth();
ahkhanjani
ahkhanjani2y ago
Thanks for your reply. Isn't this the session token? I don't think it's what I'm looking for
Neto
Neto2y ago
i think clerk abstracts that away from you
James Perkins
James Perkins2y 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