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
Hello, I’m Allie!
I would probably go with a Durable Object, as it is an atomic store
pixobe
pixobeOP7mo ago
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
louis
louis7mo ago
@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
pixobe
pixobeOP7mo ago
Thank you @Louis I really appreciate it, let me check
Want results from more Discord servers?
Add your server