Is there a way to send the verification email with the Firebase Admin SDK from my Node.js server?

前端 未结 3 1112
走了就别回头了
走了就别回头了 2020-12-19 00:13

Is there a way to send the email verification email from my server ?

This is how it\'s done on the client:

authData.sendEmailVerification().then(func         


        
3条回答
  •  甜味超标
    2020-12-19 00:41

    You can use :

    axios.post('https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=[API_KEY]',
        { requestType: 'VERIFY_EMAIL', idToken: response.data.idToken }
    )
    

    https://firebase.google.com/docs/reference/rest/auth#section-send-email-verification

提交回复
热议问题