Skip to content

CitizenHealth/covidx-cloud-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covidx Backend

Cloud functions supporting the CovidX app.

Prerequisites

Install Firebase CLI

npm install -g firebase-tools

Login to the CovidX project Firebase console from CLI

firebase login

Installation

cd functions
yarn

Deployment

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

Functions List

humanAPITokenExchange: Exchanges a handshake with the Human API to get the user publicToken

  • Input: Human API user sessionTokenObject.
  • Returns: Human API user publicToken

Example input sent with Get to the function:

GET:

{
  "client_user_id": "12345678910", 
  "client_user_email": "[email protected]"
}

RESULT:

{
  "expiresIn": 3600,
  "humanId": "XXXXidXXXX",
  "accessToken": "XXXXtokenXXXX"
}

About

Cloud support for the Human API auth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published