Stateless client-side only authentication with no server

My application is entirely client-side only. There is no server with which to add Better Auth to. The application is served via an Nginx file server and authentication is handled by the Microsoft social provider. Now that we have stateless session management in v1.4 beta and social providers exist, I would think it would now be possible to use Better Auth entirely client-side with no server-side calls. Is this possible? From what I can tell, authClient.getSession always calls /api/auth/get-session, but I do not have a backend for this end-point to exist at, so it fails. All the session data I care about should have been provided via the social provider interaction. If this is not directly possible, is there a way to write a plugin that could do it?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?