@thinkingcat/auth-utils 2.0.12 → 2.0.13

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/dist/sso/api.d.ts CHANGED
@@ -21,4 +21,5 @@ export declare function refreshSSOToken(refreshToken: string, options: {
21
21
  export declare function getRefreshTokenFromSSO(userId: string, accessToken: string, options: {
22
22
  ssoBaseURL: string;
23
23
  authServiceKey?: string;
24
+ serviceId?: string;
24
25
  }): Promise<string | null>;
package/dist/sso/api.js CHANGED
@@ -58,7 +58,7 @@ async function refreshSSOToken(refreshToken, options) {
58
58
  * SSO 서버에서 사용자의 refresh token을 가져오는 함수
59
59
  */
60
60
  async function getRefreshTokenFromSSO(userId, accessToken, options) {
61
- const { ssoBaseURL, authServiceKey } = options;
61
+ const { ssoBaseURL, authServiceKey, serviceId } = options;
62
62
  if (!authServiceKey) {
63
63
  return null;
64
64
  }
@@ -71,7 +71,8 @@ async function getRefreshTokenFromSSO(userId, accessToken, options) {
71
71
  },
72
72
  body: JSON.stringify({
73
73
  userId,
74
- accessToken
74
+ accessToken,
75
+ serviceId
75
76
  }),
76
77
  });
77
78
  const refreshResult = await refreshResponse.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkingcat/auth-utils",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "Authentication utilities for ThinkingCat SSO services with conditional logging",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",