Google auth on plasmo browser ext
Is it possible to use plasmo and have google auth with a plasmo framework extension?
I see that the example uses password and username, but I’d like to add google auth. What would be those steps?
I have a full Nextjs website with the Google auth setup already
4 Replies
You will need a website to handle the oauth part, since oauth requires redirecting to the provider's oauth flow and you can't really do that with a browser extension (as far as I'm aware).
So you'll just have a separate website which handles oauth redirects, then you'll have to find a way to pass that session data to your extension UI as cookies and store it.
Pretty difficult, and there isn't much of a clear path right now to my knowledge.
will following the guide not work?
https://www.better-auth.com/docs/guides/browser-extension-guide
i just change it to google auth instead of email and password.
i have the nextjs site already made.
To what url do I redirect the user in extension? And how can I get the data I need to store.
Same with logouts
Browser Extension Guide | Better Auth
A step-by-step guide to creating a browser extension with Better Auth.
oauth hasn't been testing on browser extensions, so we don't know.
Oh
I’ve seen other extensions have Google auth tho
So what would I need to do?