{"repo":"Code-Hex/firebase-auth-cloudflare-workers","free":true,"listed":false,"github":"https://github.com/Code-Hex/firebase-auth-cloudflare-workers","clone":"git clone https://github.com/Code-Hex/firebase-auth-cloudflare-workers.git","description":null,"language":"TypeScript","stars":176,"topics":["base64","cloudflare","cloudflare-workers","firebase","firebase-auth","jwt","jwt-token","utf8"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"firebase-auth-cloudflare-workers Zero-dependencies firebase auth library for Cloudflare Workers. - Implemented by only Web Standard API. - Supported UTF-8. - Supported Firebase Auth Emulator. Synopsis wrangler.toml Module Worker syntax Service Worker syntax Install You can install from npm registry. Docs - API - Type - Run example code - Todo API Auth.getOrInitialize(projectId: string, keyStore: KeyStorer, credential?: Credential): Auth Auth is created as a singleton object. This is because the Module Worker syntax only use environment variables at the time of request. - projectId specifies the ID of the project for which firebase auth is used. - keyStore is used to cache the public key used to validate the Firebase ID token (JWT). - credential is an optional. This is used to utilize Admin APIs such as createSessionCookie . Currently, you can specify ServiceAccountCredential class, which allows you to use a service account. See official document for project ID: https://firebase.google.com/docs/projects/learn-more#project-identifiers authObj.verifyIdToken(idToken: string, checkRevoked?: boolean, env?: EmulatorEnv): Promise Verifies a Firebase ID token (JWT). If the token is valid, the promise is fulfilled with the token's decoded claims; otherwise, the promise is rejected. See the ID Token section of the OpenID Connect spec for more information about the specific properties below. - idToken The ID token to verify. - checkRevoked - Whether to check if the session cookie was rev","default_branch":null,"files":null,"tree":[],"storefront":"/r/Code-Hex","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Code-Hex/firebase-auth-cloudflare-workers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}