authscape 1.0.227 → 1.0.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -3179,33 +3179,25 @@ var signInValidator = /*#__PURE__*/function () {
3179
3179
  case 6:
3180
3180
  response = _context.sent;
3181
3181
  window.localStorage.removeItem("verifier");
3182
-
3183
- //let domain = process.env.cookieDomain;
3184
3182
  _context.next = 10;
3185
3183
  return (0, _nookies.setCookie)(null, "access_token", response.data.access_token, {
3186
3184
  maxAge: 2147483647,
3187
3185
  path: '/',
3188
- domain: window.location.origin,
3189
- secure: true,
3190
- sameSite: false
3186
+ secure: true
3191
3187
  });
3192
3188
  case 10:
3193
3189
  _context.next = 12;
3194
3190
  return (0, _nookies.setCookie)(null, "expires_in", response.data.expires_in, {
3195
3191
  maxAge: 2147483647,
3196
3192
  path: '/',
3197
- domain: window.location.origin,
3198
- secure: true,
3199
- sameSite: false
3193
+ secure: true
3200
3194
  });
3201
3195
  case 12:
3202
3196
  _context.next = 14;
3203
3197
  return (0, _nookies.setCookie)(null, "refresh_token", response.data.refresh_token, {
3204
3198
  maxAge: 2147483647,
3205
3199
  path: '/',
3206
- domain: window.location.origin,
3207
- secure: true,
3208
- sameSite: false
3200
+ secure: true
3209
3201
  });
3210
3202
  case 14:
3211
3203
  redirectUri = localStorage.getItem("redirectUri");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.227",
3
+ "version": "1.0.228",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,33 +25,25 @@ export const signInValidator = async (queryCode) => {
25
25
 
26
26
  window.localStorage.removeItem("verifier");
27
27
 
28
- //let domain = process.env.cookieDomain;
29
-
30
28
  await setCookie(null, "access_token", response.data.access_token,
31
29
  {
32
30
  maxAge: 2147483647,
33
31
  path: '/',
34
- domain: window.location.origin,
35
- secure: true,
36
- sameSite: false
32
+ secure: true
37
33
  });
38
34
 
39
35
  await setCookie(null, "expires_in", response.data.expires_in,
40
36
  {
41
37
  maxAge: 2147483647,
42
38
  path: '/',
43
- domain: window.location.origin,
44
- secure: true,
45
- sameSite: false
39
+ secure: true
46
40
  });
47
41
 
48
42
  await setCookie(null, "refresh_token", response.data.refresh_token,
49
43
  {
50
44
  maxAge: 2147483647,
51
45
  path: '/',
52
- domain: window.location.origin,
53
- secure: true,
54
- sameSite: false
46
+ secure: true
55
47
  });
56
48
 
57
49