How do I setup bearer auth for social logins?
As I understand the current bearer docs are only for email/password sign ins, right? How do I setup and save bearer tokens in the client when the user signs in via social login ?
I have a basic hono api, and a react spa. Both are on different subdomains so I can’t use cookies for session easily. Also the cors is giving me a nightmare lmao. Anyways, so I’m trying to use bearer based auth but I don’t how to setup for social logins.
What I would imagine should happen is that my hono api redirects me to my callback url with the code in the url which I can then store when my spa boots up. Does it make sense?
I realize there might be security issues with this and I should prefer cookies but this is just a toy project of mine.
I have a basic hono api, and a react spa. Both are on different subdomains so I can’t use cookies for session easily. Also the cors is giving me a nightmare lmao. Anyways, so I’m trying to use bearer based auth but I don’t how to setup for social logins.
What I would imagine should happen is that my hono api redirects me to my callback url with the code in the url which I can then store when my spa boots up. Does it make sense?
I realize there might be security issues with this and I should prefer cookies but this is just a toy project of mine.