Stateless Session Beta - Intended access & refresh token flow genericOauth plugin

Hey we're utilizing the generic oauth plugin to run an okta oauth login flow.

current state it appears getAccessToken() does not function https://github.com/better-auth/better-auth/issues/5801

and there is no clear info on if/how token refreshes occur (I dont believe it is being handled by default and actually reaching out to the oauth provider for refresh in its current implementation

theres a thread in this issue of people implementing with simlar questions, just hoping to understand what the actual intended downstream flow for the stateless (no db) auth flow is (ie using access tokens for authenitcated requests, and refreshing)
https://github.com/better-auth/better-auth/issues/2202

if anyone has functional example implementations that would be super interesting
GitHub
Is this suited for github? Yes, this is suited for github To Reproduce Create Next.js project without db connection setup better auth in stateless mode call authClient.getAccessToken Current vs. Ex...
GitHub
Hello, First I would like to say I am very excited to be trying out better-auth, I really like the package so far and it provides a lot of very cool features out of the box. Also please let me know...
Was this page helpful?