Cloud functions supporting the CovidX app.
Install Firebase CLI
npm install -g firebase-tools
Login to the CovidX project Firebase console from CLI
firebase login
cd functions
yarn
Install the firebase CLI:
npm install -g firebase-tools
Read the Google [Get Started](https://firebase.google.com/docs/functions/get-started) documentation.
firebase deploy --only functions
humanAPITokenExchange: Exchanges a handshake with the Human API to get the user publicToken
- Input: Human API user sessionTokenObject.
- Returns: Human API user publicToken
GET:
{
"client_user_id": "12345678910",
"client_user_email": "[email protected]"
}
RESULT:
{
"expiresIn": 3600,
"humanId": "XXXXidXXXX",
"accessToken": "XXXXtokenXXXX"
}