Skip to content

Firebase function to save user auth information on graphql server

Notifications You must be signed in to change notification settings

souagrosolucoes/firebase-graphql-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firebase-graphql-auth

Firebase function to save user auth information on graphql server

Dependencies

Firebase CLI

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

Deploy

Set the environment variables

  • SEVER_API_URL: Graphql API URL (i.e., https://api.account.com/v1/graphql)
  • SEVER_API_PASSWORD: Respective password (i.e., the x-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'

To deploy

After setting the environment variables,run the command following command to deploy the functions:

firebase deploy --only functions

About

Firebase function to save user auth information on graphql server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published