> offline auth on mobile
Does Better Auth offer this? Or any other auth libraries or solutions? I haven't heard of any, but haven't done an intensive look either.
I suppose you could do something with a cached JWT or cached password hash (though sending a password hash to a mobile client spooks me).
I'm in the space and interested in learning more.
We ended up caching the credentials and the JWT refresh token from Clerk, and then manually requesting the access token using the Clerk's sparsely documented frontend API. Except that to do this with Clerk, we needed to fake the cache API and then pluck the token out of the undocumented "__clerk_client_jwt" key.
This is supported by Better Auth out-of-the box. It doesn't hide these kinds of stuff from you.
Sounds tough. I'd love to learn more.
I wasn't able to find the Better Auth docs about this use case, can you share them here please?
Hello! I'm a mobile eng @ Clerk. Would you be open to chatting? I'd love to make this experience better for you
Sure. I added my email into the profile.