From dc45eb146f434e7e1147679bd24f11241f24305f Mon Sep 17 00:00:00 2001 From: sw-yx Date: Tue, 21 May 2019 22:43:00 -0400 Subject: [PATCH] store access token from external provider as jwt cookie --- src/netlify-identity.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/netlify-identity.js b/src/netlify-identity.js index e501b7774..55ae081ef 100644 --- a/src/netlify-identity.js +++ b/src/netlify-identity.js @@ -177,9 +177,8 @@ function runRoutes() { const [key, value] = pair.split("=") params[key] = value }) - console.log({ params }) - if (!!document && params["store"]) { - document.cookie = `nf_jwt=${params["store"]}` + if (!!document && params["access_token"]) { + document.cookie = `nf_jwt=${params["access_token"]}` } document.location.hash = "" store.openModal("login")