Firebase function to save user auth information on graphql server
The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line.
To download and install the Firebase CLI run the following command:
npm install -g firebase-tools
SEVER_API_URL
: Graphql API URL (i.e.,https://api.account.com/v1/graphql
)SEVER_API_PASSWORD
: Respective password (i.e., thex-hasura-admin-secret
value)
To configure the environment variables to firebase run the following command:
firebase functions:config:set graphql.server="SEVER_API_URL" \
graphql.secret='SEVER_API_PASSWORD'
After setting the environment variables,run the command following command to deploy the functions:
firebase deploy --only functions