how to setup session to handle Google login oauth flow on workers
After successful login, what is the recommended way to store session or cookie on worker ?
4 Replies
I would probably go with a Durable Object, as it is an atomic store
Could you help me with some example code or some document. I am unable to find sample to start with.
I have successfully able to integrate and login with Google and redirect
@pixobe (im the guy from reddit) I would use Lucia Auth to implement the oAuth flows. Also i would use D1 to safe the users, sessions and so on. if you want to speed things up you can use libs like Unstorage to use the Cloudflare KV Store to handle sessions
Thank you @Louis I really appreciate it, let me check