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