@intra-mart/smartlime 2.0.0 → 2.1.1

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.
@@ -39,6 +39,7 @@ const useLogout = () => {
39
39
  const imFetch = useIMFetch({ noValidate: true });
40
40
  return useCallback((cookie) => {
41
41
  imFetch('/logout', {
42
+ credentials: 'include',
42
43
  headers: {
43
44
  Cookie: cookie,
44
45
  },
@@ -57,6 +58,7 @@ const useRequest = (setter, getter) => {
57
58
  const currentCookies = getter()?.cookies;
58
59
  const params = makeEncodeParams(clientTypeId);
59
60
  const response = await imFetch(`api/bearer/smacolow/session?${params}`, {
61
+ credentials: 'include',
60
62
  headers: {
61
63
  Accept: 'application/json',
62
64
  'X-Intramart-Session': 'keep', // https://document.intra-mart.jp/library/iap/public/im_web_api_maker/im_web_api_maker_programming_guide/texts/how_to_use_api/index.html#session-management
@@ -114,8 +116,10 @@ const useGetSessionAsync = (request, destroy, getter) => {
114
116
  const { cookies } = getter();
115
117
  if (cookies) {
116
118
  const response = await imFetch('api/smacolow/session', {
119
+ credentials: 'include',
117
120
  headers: {
118
121
  Cookie: makeCookie(cookies),
122
+ 'X-Intramart-Session': 'keep', // https://document.intra-mart.jp/library/iap/public/im_web_api_maker/im_web_api_maker_programming_guide/texts/how_to_use_api/index.html#session-management
119
123
  },
120
124
  method: 'GET',
121
125
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@intra-mart/smartlime",
3
3
  "description": "expoで使用できるintra mart accelplatform SDK",
4
- "version": "2.0.0",
4
+ "version": "2.1.1",
5
5
  "keywords": [
6
6
  "intra-mart",
7
7
  "AccelPlatform",
@@ -81,4 +81,3 @@
81
81
  "node": ">= 22.0.0"
82
82
  }
83
83
  }
84
-