Add Facebook Authentication to your Graphcool project 🎁
graphcool add-template graphcool/templates/auth/facebook
The add-template
command is performing three major steps:
- Download the source files from the
src
directory and put them into your service'ssrc
directory (into a subdirectory calledemail-password
). - Download the contents from
graphcool.yml
and append them as comments to your service'sgraphcool.yml
. - Download the contents from
types.graphql
and append them as comments to your service'stypes.graphql
.
In order for the changes to take effect, you need to manually uncomment all the lines that have been added by the add-template
command.
Finally, you need to install the node dependencies and apply all the changes you just made by deploying the service:
npm install
graphcool deploy