Skip to content

Commit 9f3bdc4

Browse files
authored
Merge pull request #74 from netlify/set-cookie
Set a cookie when not using cors
2 parents c6d2c38 + 98b4219 commit 9f3bdc4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "netlify-identity-widget",
3-
"version": "1.0.2",
3+
"version": "1.1.0",
44
"releaseVersion": "v1",
55
"description": "Netlify Identity widget for easy integration",
66
"scripts": {
@@ -45,7 +45,7 @@
4545
"eslint-plugin-prettier": "^2.2.0",
4646
"eslint-plugin-react": "^7.0.0",
4747
"file-loader": "^0.11.1",
48-
"gotrue-js": "^0.9.11",
48+
"gotrue-js": "^0.9.12",
4949
"html-webpack-plugin": "^2.28.0",
5050
"json-loader": "^0.5.4",
5151
"mkdirp": "^0.5.1",

src/netlify-identity.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ function instantiateGotrue() {
7979
parts.push("/");
8080
}
8181
parts.push(".netlify/identity");
82-
return new GoTrue({ APIUrl: parts.join("") });
82+
return new GoTrue({ APIUrl: parts.join(""), setCookie: !isLocal });
8383
}
8484
if (isLocal) {
8585
return null;
8686
}
8787

88-
return new GoTrue();
88+
return new GoTrue({ setCookie: !isLocal });
8989
}
9090

9191
let root;

webpack.config.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const CSS_MAPS = ENV !== "production";
1111
module.exports = {
1212
context: path.resolve(__dirname, "src"),
1313
entry: {
14-
"netlify-identity-widget": "./index.js",
14+
"netlify-identity-widget": "./index.js"
1515
},
1616

1717
output: {

0 commit comments

Comments
 (0)