snippets-web icon indicating copy to clipboard operation
snippets-web copied to clipboard

Web snippets for firebase.google.com

Results 49 snippets-web issues
Sort by recently updated
recently updated
newest added

Add a function to get the previous page in the pagination snippet example

There is a file at https://github.com/firebase/snippets-web/blob/9bdf357b4b667c71b0914f4af9fa6210b4a953d5/snippets/auth-next/phone-auth/auth_get_recaptcha_response.js It uses a variable **grecaptcha** which is not defined in the file nor imported from another file.

@wu-hui, is there no equivalent error handling mechanism in the new API?

I'm pretty sure i'm doing it right, but the RecaptchaVerifier is causing this error: TypeError: Cannot read property 'prototype' of undefined, js engine: hermes, it is written in react native:...

Add a new document with Todo App ![image](https://user-images.githubusercontent.com/39994467/193101369-69db0582-00aa-42ae-a9b7-726d2827a9ce.png)

needs-info

The docs related to `Set a document` [see here](https://firebase.google.com/docs/firestore/manage-data/add-data?hl=en&authuser=0#add_a_document:~:text=If%20the%20document%20does%20not%20exist%2C%20it%20will%20be%20created.%20If%20the%20document%20does%20exist%2C%20its%20contents%20will%20be%20overwritten%20with%20the%20newly%20provided%20data%2C%20unless%20you%20specify%20that%20the%20data%20should%20be%20merged%20into%20the%20existing%20document%2C%20as%20follows%3A) are missing the keyword `await` before `setDoc()` function. For the code example where the `{ merge: true}` is used. ![image](https://user-images.githubusercontent.com/16472274/222779344-719ae4ea-e430-4a30-8505-e024b712f40f.png) All...

handler code: ``` const handleEmailVerification = (user) => { console.log("email verification sent") console.log(user); if (user) user.sendEmailVerification() .then(_ => alert(`Email Verification is sent to ${email}`)) .catch(error => alert(error.message)) else alert("User is...

Can i get upload progress when upload a string like this ? ```node import { getStorage, ref, uploadString } from "firebase/storage"; const storage = getStorage(); const storageRef = ref(storage, 'some-child');...