Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const firebaseSave = async function(data) {
- const uid = firebase.auth().currentUser.uid
- const profilePath = `users/${uid}`
- const profileData = {
- name: data.name,
- }
- const userRef = firebaseDb.child(profilePath)
- await userRef.set(profileData)
- callback()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement