sujantkumarkv
sujantkumarkv
PD🧩 Plasmo Developers
Created by sujantkumarkv on 6/15/2023 in #👟framework
firebase auth in mv3 made my life a joke
hey @everyone, can someone help on this please 🙏🏻 ?
13 replies
PD🧩 Plasmo Developers
Created by sujantkumarkv on 6/15/2023 in #👟framework
firebase auth in mv3 made my life a joke
one more imp point, my code fails here in the service worker index.ts file: and get the error "Could not get token in the service worker": chrome.runtime.onMessage.addListener( async function ( request, sender, sendResponse ) { console.log(request) if (request.type === "startAuth") { chrome.identity.getAuthToken( { interactive: true }, async function (token) { if (token) { chrome.runtime.sendMessage({ type: "authTokenSuccess", token: token }) console.log("token sent to custom hook") } else if (chrome.runtime.lastError || !token) { console.log("Could not get token in the service worker") chrome.runtime.sendMessage({ type: "authTokenError", error: chrome.runtime.lastError }) return } ...
13 replies
PD🧩 Plasmo Developers
Created by sujantkumarkv on 6/15/2023 in #👟framework
firebase auth in mv3 made my life a joke
No description
13 replies
PD🧩 Plasmo Developers
Created by sujantkumarkv on 6/15/2023 in #👟framework
firebase auth in mv3 made my life a joke
No description
13 replies
PD🧩 Plasmo Developers
Created by sujantkumarkv on 6/15/2023 in #👟framework
firebase auth in mv3 made my life a joke
No description
13 replies
PD🧩 Plasmo Developers
Created by webdev on 6/6/2023 in #👟framework
Firebase auth in background script
hey @webdev can you explain more on how you got the with-firebase-auth working, like my doubt is regarding the flow, googling & chatgpt says we shalln't use firebase logic in the background service worker (bgsw) file & chrome.identity... works in bgsw but not elsewhere & doesn't have access to react state. I'm getting this error (includes my console.logs) Sending message to background to start auth {type: 'startAuth'} message: "OAuth2 not granted or revoked."[[Prototype]]: Object Could not get token in the service worker autTokenError, didn't receive token {message: 'OAuth2 not granted or revoked.'}
6 replies