Can anyone please let me know how do we set up email server for google identity platform "Send password reset email" API. It was told that 'You can send a password reset email by issuing an HTTP POST request'. I am getting success response but not receiving email. What configuration needs to be done for triggering email.
Endpoint: https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=[API_KEY]
Thanks
As shown in the accounts.sendOobCode method documentation, you can send several fields in the request body.
The fields you should provide are request type and email:
requestType
enum (OobReqType)email
stringAn example of the POST request is as follows:
POST https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=[YOUR_API_KEY] HTTP/1.1
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json
{
"requestType": "PASSWORD_RESET",
"email": "[EMAIL_OF_THE_USER]"
}
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |