McJezus
PD🧩 Plasmo Developers
•Created by Asif on 1/3/2024 in #👟framework
Google & Facebook OAuth without firebase
@Asif I'm actually wrong in my explanation.
The getAuthToken returns an OAuth2 token which is also cached by the identity API. This is given in the jsdoc for the function:
15 replies
PD🧩 Plasmo Developers
•Created by Asif on 1/3/2024 in #👟framework
Google & Facebook OAuth without firebase
No it is in my popup file.
The OAuthLogin is a simple rtk mutation that calls a back-end route. It looks like this:
This can be exchanged for any function that makes a request to your back-end. It sends the token we received from the login to the back so it can exchange it for an access token.
15 replies
PD🧩 Plasmo Developers
•Created by Asif on 1/3/2024 in #👟framework
Google & Facebook OAuth without firebase
Sure thing. I am using this in the popup directly and not in the background:
15 replies
PD🧩 Plasmo Developers
•Created by Asif on 1/3/2024 in #👟framework
Google & Facebook OAuth without firebase
@Asif Which browser are you using?
There is a bug in some browsers that use Chromium, like Brave, where it fails when encoding the URL for the OAuth, so it fails with that error.
When I moved to Chrome specifically it worked.
If you still have a problem I will explain to you what I did for Google OAuth :)
15 replies