From 04279aa53d8faac9328ab37ae65fc2f9822efbda Mon Sep 17 00:00:00 2001 From: Willy Douglas Date: Thu, 2 Nov 2017 19:40:27 -0600 Subject: [PATCH 1/2] Clarify where graphcool add-template needs to be run from It was not obvious that the command `graphcool add-template` should be run from within the server directory. Hopefully this helps to clarify things. --- auth/auth0/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth/auth0/README.md b/auth/auth0/README.md index ad62c7b..3fd3714 100644 --- a/auth/auth0/README.md +++ b/auth/auth0/README.md @@ -6,6 +6,7 @@ Add Auth0 Authentication to your Graphcool project 🎁 ## Getting Started ### 1. Add the template to your Graphcool service +From your server directory (e.g. if you were to just have run `graphcool init server` your "server directory" would be `./server`) run: ```sh graphcool add-template graphcool/templates/auth/auth0 @@ -88,4 +89,4 @@ Paste the mutation copied from above You should see that a new user has been created. The returned token can be used to authenticate requests to your Graphcool API as that user. Note that running the mutation again with a new Auth0 token for the same user will not add a new user. -![](http://i.imgur.com/5RHR6Ku.png) \ No newline at end of file +![](http://i.imgur.com/5RHR6Ku.png) From f04cd0381dcdacc016406ca574dce91c77e4f0b7 Mon Sep 17 00:00:00 2001 From: Willy Douglas Date: Thu, 9 Nov 2017 20:29:01 -0700 Subject: [PATCH 2/2] Update word: server -> service This is to incorporate feedback around the common terminology for graphcool --- auth/auth0/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/auth0/README.md b/auth/auth0/README.md index 3fd3714..48b6dfe 100644 --- a/auth/auth0/README.md +++ b/auth/auth0/README.md @@ -6,7 +6,7 @@ Add Auth0 Authentication to your Graphcool project 🎁 ## Getting Started ### 1. Add the template to your Graphcool service -From your server directory (e.g. if you were to just have run `graphcool init server` your "server directory" would be `./server`) run: +From your server directory (e.g. if you were to just have run `graphcool init server` your "service directory" would be `./server`) run: ```sh graphcool add-template graphcool/templates/auth/auth0