@clicktap/state 0.9.3 → 0.11.0
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.esm.js +14 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -183,7 +183,9 @@ var authMachine = setup({
|
|
|
183
183
|
}, {
|
|
184
184
|
headers: {
|
|
185
185
|
Cookie: "refresh_token=".concat(input.context.refreshToken),
|
|
186
|
-
'Content-Type': 'application/json'
|
|
186
|
+
'Content-Type': 'application/json',
|
|
187
|
+
'clicktap-scope': 'view',
|
|
188
|
+
'clicktap-scope-id': 'default'
|
|
187
189
|
},
|
|
188
190
|
withCredentials: true
|
|
189
191
|
});
|
|
@@ -214,7 +216,9 @@ var authMachine = setup({
|
|
|
214
216
|
mode: 'cors',
|
|
215
217
|
credentials: 'include',
|
|
216
218
|
headers: {
|
|
217
|
-
'Content-Type': 'application/json'
|
|
219
|
+
'Content-Type': 'application/json',
|
|
220
|
+
'clicktap-scope': 'view',
|
|
221
|
+
'clicktap-scope-id': 'default'
|
|
218
222
|
},
|
|
219
223
|
body: JSON.stringify({
|
|
220
224
|
grant_type: 'refresh_token'
|
|
@@ -258,7 +262,9 @@ var authMachine = setup({
|
|
|
258
262
|
mode: 'cors',
|
|
259
263
|
credentials: 'include',
|
|
260
264
|
headers: {
|
|
261
|
-
'Content-Type': 'application/json'
|
|
265
|
+
'Content-Type': 'application/json',
|
|
266
|
+
'clicktap-scope': 'view',
|
|
267
|
+
'clicktap-scope-id': 'default'
|
|
262
268
|
},
|
|
263
269
|
body: JSON.stringify({
|
|
264
270
|
username: input.username,
|
|
@@ -299,7 +305,11 @@ var authMachine = setup({
|
|
|
299
305
|
return fetch(input.context.endpoints.logout, {
|
|
300
306
|
method: 'POST',
|
|
301
307
|
mode: 'cors',
|
|
302
|
-
credentials: 'include'
|
|
308
|
+
credentials: 'include',
|
|
309
|
+
headers: {
|
|
310
|
+
'clicktap-scope': 'view',
|
|
311
|
+
'clicktap-scope-id': 'default'
|
|
312
|
+
}
|
|
303
313
|
// headers: {
|
|
304
314
|
// 'Access-Control-Allow-Origin': 'https://middleware-clicktap.local-rmgmedia.com',
|
|
305
315
|
// 'Access-Control-Allow-Credentials': 'true',
|