Authentication for apps
Authentication
Users will have the option to sign in using an email, phone and password or with Google, Facebook or their Apple account. The user can also select “forgot password”, register and set up two-factor authentication.
Chnage to use BackBone Auth
Get user data
https://us-central1-calm-commerce.cloudfunctions.net/api/v1/users/$id
create user *post
https://us-central1-calm-commerce.cloudfunctions.net/api/v1/signup
Request body
{
"email": "hayderab@outlook.net",
"password": "1234568"
}
Response
{
"id": "yBNz4xNba6eUBirVUwsa6MFzEDh1",
"email": "hayderab@outlook.net",
"emailVerified": false,
"refreshToken": "AOvuKvTqhHeJ51HjlCZDasYffEVTGkgtVz3i_Cn6y4dX6zuY2okvXTEbGkNGVLdf4WjTB7e"
}
Login
Same as signup*
https://us-central1-calm-commerce.cloudfunctions.net/api/v1/login