Authentication
Authentication
Can be user for all type of users to get Auth id_token and auth refresh token.
This id_token can be used as Authorization Bearer token by both admin and users (defined roles)

Login

Login for the users to get the authToken and refresh Token In response.
1
curl --location --request POST 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/login' \
2
--data-raw '{
3
"email":"[email protected]",
4
"password":"password"
5
}
Copied!

Refresh Token

if authToken gets expired users can get the new token by passing the refresh token (received from login endpoint) and in the response users will get updated authToken.
1
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/refreshToken' \
2
--header 'refreshToken: refresh_token'
Copied!
Copy link
Contents