Links

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.
curl --location --request POST 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/login' \
--data-raw '{
"email":"[email protected]",
"password":"password"
}

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.
curl --location --request GET 'https://us-central1-changedev-3b21a.cloudfunctions.net/api/v1/refreshToken' \
--header 'refreshToken: refresh_token'