Making API Requests w/ Tokens from Better Auth
hello, first time user of better-auth here, starting out with a new project to test the framework.
i'm using the Spotify social provider to allow the user to login with Spotify, since that's what my app is related to. my question is, how can i access the token assigned by Spotify for auth to actually make requests to their Web API? i'm unable to find a way on the docs to receive the bearer token stored by better-auth
Solution:Jump to solution
I may be wrong but have you tried checking the "account" table, the only logical place i could see the access token being stored is account access token column
2 Replies
Solution
I may be wrong but have you tried checking the "account" table, the only logical place i could see the access token being stored is account access token column
aaaand found it, thanks a ton
i was looking for a method on the auth object itself to access that, but that's probably not plausible. thanks again :)