Search
Setup for Free
TTC
Theo's Typesafe Cult
•
3y ago
ahkhanjani
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
?
Theo's Typesafe Cult
Join
26,230
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
N
Neto
•
5/4/23, 5:52 PM
https://clerk.com/docs/reference/clerk-react/useauth
useAuth | Clerk
Access the auth state inside your React components
.
A
ahkhanjani
OP
•
5/4/23, 5:52 PM
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
Neto
•
5/4/23, 5:53 PM
const { sessionId, getToken, } = useAuth();
const { sessionId, getToken, } = useAuth();
N
Neto
```tsx const { sessionId, getToken, } = useAuth(); ```
A
ahkhanjani
OP
•
5/4/23, 6:05 PM
Thanks for your reply
. Isn
't this the session token
? I don
't think it
's what I
'm looking for
N
Neto
•
5/4/23, 6:06 PM
i think clerk abstracts that away from you
J
James Perkins
•
5/5/23, 7:37 PM
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
)
const
{
sessionId
,
getToken
,
}
=
useAuth
();
const
{
sessionId
,
getToken
,
}
=
useAuth
();
Similar Threads
Clerk and provider access / refresh tokens
TTC
Theo's Typesafe Cult / questions
3y ago
Question about refresh /access token
TTC
Theo's Typesafe Cult / questions
11mo ago
Does NextAuth refresh access_token automatically?
TTC
Theo's Typesafe Cult / questions
3y ago