Skip to content

Commit

Permalink
store access token from external provider as jwt cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-yx committed May 22, 2019
1 parent 08f15b9 commit dc45eb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/netlify-identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dc45eb1

Please sign in to comment.