Skip to content

Commit dc45eb1

Browse files
author
sw-yx
committed
store access token from external provider as jwt cookie
1 parent 08f15b9 commit dc45eb1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/netlify-identity.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ function runRoutes() {
177177
const [key, value] = pair.split("=")
178178
params[key] = value
179179
})
180-
console.log({ params })
181-
if (!!document && params["store"]) {
182-
document.cookie = `nf_jwt=${params["store"]}`
180+
if (!!document && params["access_token"]) {
181+
document.cookie = `nf_jwt=${params["access_token"]}`
183182
}
184183
document.location.hash = ""
185184
store.openModal("login")

0 commit comments

Comments
 (0)