We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dc0311 commit 55b6a15Copy full SHA for 55b6a15
src/netlify-identity.js
@@ -183,6 +183,17 @@ function runRoutes() {
183
if (!!document && params["access_token"]) {
184
document.cookie = `nf_jwt=${params["access_token"]}`;
185
}
186
+ if (params["state"]) {
187
+ try {
188
+ // skip initialization for implicit auth
189
+ const state = decodeURIComponent(params["state"]);
190
+ const { auth_type } = JSON.parse(state);
191
+ if (auth_type === "implicit") {
192
+ return;
193
+ }
194
+ // eslint-disable-next-line no-empty
195
+ } catch (e) {}
196
197
document.location.hash = "";
198
store.openModal("login");
199
store.completeExternalLogin(params);
0 commit comments