@infoteam/account-testing 0.0.0-stage → 0.6.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GSA Infoteam
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,120 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @infoteam/account-testing
2
+
3
+ [`@infoteam/account-nest`](../nest)나 [`@infoteam/account-server`](../server)를 붙인 서비스 백엔드를 실제 IdP 없이 테스트하는 가짜 IdP다.
4
+
5
+ ## 테스트 대상
6
+
7
+ code 교환과 id_token 검증(`loginWithCode`)은 SDK에서 테스트한다. 서비스가 테스트할 것은 그 위에 직접 작성한 코드다.
8
+
9
+ - 사용자 연결: IdP 사용자를 서비스 DB의 사용자와 제대로 연결하는가. 기존 사용자를 찾지 못해 새로 만들어 버리면 사용자에게는 자기 데이터가 사라진 것처럼 보인다.
10
+ - 세션: [세션 프로토콜](../../README.md#세션-프로토콜)대로 발급, 갱신, 로그아웃하는가.
11
+ - guard를 붙인 API: 로그인하지 않은 요청을 막고, 로그인한 요청에서는 세션으로 사용자를 찾아 동작하는가.
12
+ - 서비스 정책: 약관 동의(403 거절과 ticket), 한 기기 로그인 등.
13
+
14
+ 이 코드를 실행하려면 `/auth/login`을 거쳐야 하고, `/auth/login`은 IdP와 통신한다. 가짜 IdP는 이 통신에 실제 IdP처럼 응답하므로, 서비스
15
+ 코드를 실제 로그인 경로 그대로 실행할 수 있다.
16
+
17
+ | 실제 로그인 | 테스트에서 |
18
+ | ---------------------------------------------------- | --------------------------------------------- |
19
+ | 사용자가 브라우저에서 IdP에 로그인하고 code를 받는다 | `idp.authorize()`가 그 결과(code 등)를 만든다 |
20
+ | 프론트가 code를 `POST /auth/login`으로 보낸다 | 테스트가 supertest로 보낸다 |
21
+ | `loginWithCode`가 code를 교환하고 사용자를 확인한다 | 가짜 IdP가 응답한다 |
22
+ | 서비스 코드가 사용자를 연결하고 세션을 만든다 | 실제로 실행된다(서비스 코드, 서비스 DB) |
23
+
24
+ 실제 IdP와의 연동(client 등록, redirect URI)은 확인하지 못하므로, 스테이징 IdP로 한 번은 직접 로그인해 본다.
25
+
26
+ ## 설치
27
+
28
+ ```bash
29
+ pnpm add -D @infoteam/account-testing
30
+ ```
31
+
32
+ ESM으로만 배포한다.
33
+
34
+ - **vitest:** 그대로 쓴다. 다만 Nest의 생성자 주입은 `emitDecoratorMetadata`가 있어야 동작하므로 `unplugin-swc`를 붙인다(`plugins: [swc.vite()]`).
35
+ - **jest:** [account-nest의 jest 설정](../nest/README.md#설치)에 이 패키지와 `@faker-js/faker`도 변환 대상으로 넣는다.
36
+
37
+ ## 예시
38
+
39
+ 서비스 앱을 그대로 띄우고, SDK가 IdP에 보내는 요청만 가짜 IdP로 보낸다. SDK는 `fetch` 옵션이 없으면 전역 `fetch`를 쓰므로 전역 `fetch`를
40
+ 바꾸면 된다. 서비스 코드는 바꾸지 않는다.
41
+
42
+ ```ts
43
+ import { createFakeIdp, fakeUser, type FakeIdp } from '@infoteam/account-testing';
44
+ import { type INestApplication } from '@nestjs/common';
45
+ import { Test } from '@nestjs/testing';
46
+ import request from 'supertest';
47
+
48
+ import { AppModule } from '../src/app.module';
49
+
50
+ let idp: FakeIdp;
51
+ let app: INestApplication;
52
+
53
+ beforeAll(async () => {
54
+ idp = await createFakeIdp();
55
+ jest.spyOn(globalThis, 'fetch').mockImplementation(idp.fetch); // vitest는 vi.spyOn
56
+
57
+ const moduleRef = await Test.createTestingModule({ imports: [AppModule] }).compile();
58
+ app = moduleRef.createNestApplication();
59
+ await app.init();
60
+ });
61
+
62
+ /** 사용자가 IdP에서 로그인하고 돌아와 서비스에 로그인한 상태를 만든다. */
63
+ async function login(user = fakeUser()) {
64
+ const { body } = await idp.authorize({ clientId: process.env.ACCOUNT_CLIENT_ID!, user });
65
+ const res = await request(app.getHttpServer())
66
+ .post('/auth/login')
67
+ .send({ ...body, transport: 'body' }); // 서비스가 세션 프로토콜대로 구현했다면 refresh token도 body로 온다
68
+ return res.body.access_token as string;
69
+ }
70
+
71
+ it('기존 사용자는 새로 만들지 않고 같은 행에 연결한다', async () => {
72
+ const existing = await prisma.user.create({ data: { uuid: 'idp-sub-1', name: '홍길동' } });
73
+
74
+ await login(fakeUser({ sub: 'idp-sub-1', name: '홍길동' }));
75
+
76
+ expect(await prisma.user.count({ where: { uuid: 'idp-sub-1' } })).toBe(1);
77
+ expect(await prisma.user.findUnique({ where: { id: existing.id } })).not.toBeNull();
78
+ });
79
+
80
+ it('로그인해야 내 정보를 볼 수 있다', async () => {
81
+ await request(app.getHttpServer()).get('/me').expect(401);
82
+
83
+ const token = await login(fakeUser({ name: '김철수' }));
84
+ await request(app.getHttpServer()).get('/me').set('authorization', `Bearer ${token}`).expect(200);
85
+ });
86
+ ```
87
+
88
+ `prisma`, `/me`, `uuid` 필드는 서비스마다 다르다. 서비스 env의 `ACCOUNT_CLIENT_ID`와 `ACCOUNT_CLIENT_SECRET`에는 아무 값이나 넣어도 된다.
89
+
90
+ ## API
91
+
92
+ ### `createFakeIdp(options?)`
93
+
94
+ | 옵션 | 설명 |
95
+ | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
96
+ | `clients` | 등록된 client 목록(`clientId`, `clientSecret`, `scopes`, `optionalScopes`). 생략하면 어떤 client든 허용하고, 모든 scope를 필수로 등록한 것으로 본다 |
97
+ | `users` | client credentials로 조회(`getUserInfoBySub`)할 수 있는 사용자. `authorize()`한 사용자는 자동으로 추가된다 |
98
+
99
+ `clients`를 넘기면 서버가 시작할 때 하는 등록 점검(`requiredScopes`가 필수 scope로 등록됐는가)까지 시험할 수 있다.
100
+
101
+ ### `idp.authorize(options)`
102
+
103
+ 사용자가 IdP에서 로그인하고 돌아온 상태를 만든다. 서비스 `/auth/login`에 보낼 `body`(`code`, `code_verifier`, `redirect_uri`, `nonce`)와 로그인한
104
+ `user`를 돌려준다. code는 한 번만 쓸 수 있다.
105
+
106
+ | 옵션 | 설명 |
107
+ | ----------------- | --------------------------------------------------------------------------------------------- |
108
+ | `clientId` | 필수. 서비스가 쓰는 client id와 같아야 한다 |
109
+ | `user` | 로그인할 사용자. 생략하면 `fakeUser()` |
110
+ | `scopes` | 사용자가 동의한 scope. 생략하면 client에 등록된 전부. 선택 scope를 거절한 경우를 만들 때 쓴다 |
111
+ | `authTime`, `amr` | 로그인 시각(초)과 방식. 기본값은 현재 시각과 비밀번호(`['pwd']`) |
112
+
113
+ ### `fakeUser(overrides?)`
114
+
115
+ 모든 필드(이름, 이메일, 학번, 전화번호 등)가 무작위로 채워진 IdP 사용자다. `sub`처럼 고정할 값만 넘긴다.
116
+
117
+ ### `idp.fetch`
118
+
119
+ IdP 요청에 응답하는 `fetch`다. host는 확인하지 않고 경로만 확인하며, IdP 경로가 아니면 404를 준다. 테스트에서 다른 외부 API도 호출한다면 주소를 보고 원래
120
+ `fetch`로 넘긴다. `AccountModule.forRoot()`를 테스트에서 직접 만든다면 전역 `fetch`를 바꾸지 않고 `fetch: idp.fetch` 옵션으로 넘겨도 된다.
@@ -0,0 +1,57 @@
1
+ import { ClientScope, TokenEndpointAuthMethod, UserClaims } from "@infoteam/account-contract";
2
+ //#region src/fake-idp.d.ts
3
+ export type FakeUser = {
4
+ sub: string;
5
+ } & Partial<UserClaims>;
6
+ /**
7
+ * `clients`를 하나도 주지 않으면 어떤 client id와 secret이든 받고, 그 client를 모든 scope를 필수로 등록한
8
+ * `client_secret_post` client로 본다.
9
+ */
10
+ export interface FakeClient {
11
+ clientId: string;
12
+ /** 값을 주면 token endpoint가 이 secret을 요구한다. */
13
+ clientSecret?: string;
14
+ scopes?: ClientScope[];
15
+ optionalScopes?: ClientScope[];
16
+ tokenEndpointAuthMethod?: TokenEndpointAuthMethod;
17
+ }
18
+ export interface FakeIdpOptions {
19
+ /**
20
+ * client credentials 토큰으로 조회할 수 있는 사용자 목록이다. {@link FakeIdp.authorize} 한 사용자는 이 목록에
21
+ * 저절로 들어간다.
22
+ */
23
+ users?: FakeUser[];
24
+ clients?: FakeClient[];
25
+ }
26
+ export interface FakeAuthorizeOptions {
27
+ clientId: string;
28
+ user?: FakeUser;
29
+ /** 기본값은 client에 등록한 scope 전부이고, client를 등록하지 않았으면 모든 scope다. */
30
+ scopes?: readonly ClientScope[];
31
+ redirectUri?: string;
32
+ /** 초 단위다. */
33
+ authTime?: number;
34
+ /** 기본은 비밀번호 로그인(`["pwd"]`)이다. */
35
+ amr?: string[];
36
+ }
37
+ export interface FakeLoginBody {
38
+ code: string;
39
+ code_verifier: string;
40
+ redirect_uri: string;
41
+ nonce: string;
42
+ }
43
+ export interface FakeIdp {
44
+ /** issuer는 `'production'`이든 무엇이든 된다. */
45
+ fetch: typeof globalThis.fetch;
46
+ /** code는 한 번만 교환할 수 있고, PKCE와 nonce도 진짜 IdP처럼 확인한다. */
47
+ authorize(options: FakeAuthorizeOptions): Promise<{
48
+ body: FakeLoginBody;
49
+ user: FakeUser;
50
+ }>;
51
+ }
52
+ export declare function createFakeIdp(options?: FakeIdpOptions): Promise<FakeIdp>;
53
+ //#endregion
54
+ //#region src/fake-user.d.ts
55
+ /** 모든 claim이 채워져 있어 어떤 `requiredScopes`로도 로그인할 수 있다. */
56
+ export declare function fakeUser(overrides?: Partial<FakeUser>): FakeUser;
57
+ //#endregion
package/dist/index.js ADDED
@@ -0,0 +1,211 @@
1
+ import { CLIENT_SCOPES, CODE_CHALLENGE_METHOD, GRANT_TYPES, IDP_PAGE_PATHS, OPENID_SCOPE, SCOPES, SCOPE_CLAIMS } from "@infoteam/account-contract";
2
+ import { SignJWT, exportJWK, generateKeyPair } from "jose";
3
+ import * as oauth from "oauth4webapi";
4
+ import { faker, fakerKO } from "@faker-js/faker";
5
+ //#region src/fake-user.ts
6
+ /** 모든 claim이 채워져 있어 어떤 `requiredScopes`로도 로그인할 수 있다. */
7
+ function fakeUser(overrides = {}) {
8
+ return {
9
+ sub: faker.string.uuid(),
10
+ name: fakerKO.person.lastName() + fakerKO.person.firstName(),
11
+ profile: faker.internet.url(),
12
+ picture: faker.image.avatar(),
13
+ email: `${faker.internet.username().toLowerCase()}@gm.gist.ac.kr`,
14
+ student_id: `${faker.number.int({
15
+ min: 2018,
16
+ max: 2026
17
+ })}${faker.string.numeric(4)}`,
18
+ is_student_id_verified: true,
19
+ phone_number: `010-${faker.string.numeric(4)}-${faker.string.numeric(4)}`,
20
+ is_phone_number_verified: true,
21
+ ...overrides
22
+ };
23
+ }
24
+ //#endregion
25
+ //#region src/fake-idp.ts
26
+ const DEFAULT_REDIRECT_URI = "https://service.example/auth/callback";
27
+ const ACCESS_TOKEN_TTL = 10800;
28
+ async function createFakeIdp(options = {}) {
29
+ const { privateKey, publicKey } = await generateKeyPair("ES256");
30
+ const jwk = {
31
+ ...await exportJWK(publicKey),
32
+ kid: "fake-idp",
33
+ use: "sig",
34
+ alg: "ES256"
35
+ };
36
+ const clients = new Map((options.clients ?? []).map((client) => [client.clientId, client]));
37
+ const users = new Map((options.users ?? []).map((user) => [user.sub, user]));
38
+ const codes = /* @__PURE__ */ new Map();
39
+ const tokens = /* @__PURE__ */ new Map();
40
+ const registeredScopes = (clientId) => {
41
+ const client = clients.get(clientId);
42
+ return client ? [...client.scopes ?? [], ...client.optionalScopes ?? []] : CLIENT_SCOPES;
43
+ };
44
+ const authenticate = (clientId, secret) => {
45
+ if (clients.size === 0) return true;
46
+ const client = clients.get(clientId);
47
+ return !!client && (client.clientSecret === void 0 || client.clientSecret === secret);
48
+ };
49
+ const issueAccessToken = (token) => {
50
+ const value = oauth.generateRandomState();
51
+ tokens.set(value, token);
52
+ return value;
53
+ };
54
+ const tokenEndpoint = async (request) => {
55
+ const body = new URLSearchParams(await request.text());
56
+ const [basicId, basicSecret] = basicCredentials(request.headers.get("authorization"));
57
+ const clientId = body.get("client_id") ?? basicId;
58
+ const secret = body.get("client_secret") ?? basicSecret;
59
+ if (!clientId || !authenticate(clientId, secret)) return oauthError("invalid_client", 401);
60
+ if (body.get("grant_type") === "client_credentials") {
61
+ const scopes = parseScopes(body.get("scope"));
62
+ return Response.json({
63
+ access_token: issueAccessToken({
64
+ clientId,
65
+ scopes
66
+ }),
67
+ token_type: "Bearer",
68
+ expires_in: ACCESS_TOKEN_TTL,
69
+ scope: scopes.join(" ")
70
+ });
71
+ }
72
+ if (!body.has("grant_type")) return oauthError("invalid_request", 400);
73
+ if (body.get("grant_type") !== "authorization_code") return oauthError("unsupported_grant_type", 400);
74
+ const pending = codes.get(body.get("code") ?? "");
75
+ codes.delete(body.get("code") ?? "");
76
+ const verifier = body.get("code_verifier") ?? "";
77
+ const valid = pending?.clientId === clientId && pending.redirectUri === body.get("redirect_uri") && pending.codeChallenge === await oauth.calculatePKCECodeChallenge(verifier);
78
+ if (!pending || !valid) return oauthError("invalid_grant", 400);
79
+ const now = Math.floor(Date.now() / 1e3);
80
+ const idToken = await new SignJWT({
81
+ ...claimsOf(pending.user, pending.scopes),
82
+ nonce: pending.nonce,
83
+ auth_time: pending.authTime,
84
+ amr: pending.amr,
85
+ scope: [OPENID_SCOPE, ...pending.scopes].join(" ")
86
+ }).setProtectedHeader({
87
+ alg: "ES256",
88
+ kid: jwk.kid
89
+ }).setIssuer(frontOrigin(new URL(request.url).origin)).setSubject(pending.user.sub).setAudience(pending.clientId).setIssuedAt(now).setExpirationTime(now + 3600).sign(privateKey);
90
+ return Response.json({
91
+ access_token: issueAccessToken({
92
+ clientId: pending.clientId,
93
+ scopes: pending.scopes,
94
+ user: pending.user
95
+ }),
96
+ token_type: "Bearer",
97
+ expires_in: ACCESS_TOKEN_TTL,
98
+ scope: [OPENID_SCOPE, ...pending.scopes].join(" "),
99
+ id_token: idToken
100
+ });
101
+ };
102
+ const userinfoEndpoint = (request, url) => {
103
+ const token = tokens.get(request.headers.get("authorization")?.replace(/^Bearer /, "") ?? "");
104
+ if (!token) return new Response(null, { status: 401 });
105
+ const user = token.user ?? users.get(url.searchParams.get("sub") ?? "");
106
+ if (!user) return Response.json({
107
+ statusCode: 404,
108
+ message: "Not Found"
109
+ }, { status: 404 });
110
+ return Response.json({
111
+ sub: user.sub,
112
+ ...claimsOf(user, token.scopes)
113
+ });
114
+ };
115
+ const fetch = async (input, init) => {
116
+ const request = new Request(input, init);
117
+ const url = new URL(request.url);
118
+ const path = url.pathname;
119
+ if (path === "/.well-known/openid-configuration") return Response.json(discovery(url.origin));
120
+ if (path === "/oauth/certs") return Response.json({ keys: [jwk] });
121
+ if (path === "/oauth/token" && request.method === "POST") return tokenEndpoint(request);
122
+ if (path === "/oauth/userinfo") return userinfoEndpoint(request, url);
123
+ if (path === "/oauth/revoke") return new Response(null, { status: 200 });
124
+ const registered = /^\/client\/([^/]+)\/public$/.exec(path)?.[1];
125
+ if (registered) {
126
+ const clientId = decodeURIComponent(registered);
127
+ const client = clients.size === 0 ? {
128
+ clientId,
129
+ scopes: [...CLIENT_SCOPES]
130
+ } : clients.get(clientId);
131
+ if (!client) return Response.json({ statusCode: 404 }, { status: 404 });
132
+ return Response.json({
133
+ clientId: client.clientId,
134
+ scopes: client.scopes ?? [],
135
+ optionalScopes: client.optionalScopes ?? [],
136
+ tokenEndpointAuthMethod: client.tokenEndpointAuthMethod ?? "client_secret_post"
137
+ });
138
+ }
139
+ return new Response("not found", { status: 404 });
140
+ };
141
+ return {
142
+ fetch,
143
+ async authorize({ user = fakeUser(), ...authorizeOptions }) {
144
+ const code = oauth.generateRandomState();
145
+ const codeVerifier = oauth.generateRandomCodeVerifier();
146
+ const nonce = oauth.generateRandomNonce();
147
+ const redirectUri = authorizeOptions.redirectUri ?? DEFAULT_REDIRECT_URI;
148
+ users.set(user.sub, user);
149
+ codes.set(code, {
150
+ user,
151
+ clientId: authorizeOptions.clientId,
152
+ scopes: authorizeOptions.scopes ?? registeredScopes(authorizeOptions.clientId),
153
+ redirectUri,
154
+ nonce,
155
+ codeChallenge: await oauth.calculatePKCECodeChallenge(codeVerifier),
156
+ authTime: authorizeOptions.authTime ?? Math.floor(Date.now() / 1e3),
157
+ amr: authorizeOptions.amr ?? ["pwd"]
158
+ });
159
+ return {
160
+ body: {
161
+ code,
162
+ code_verifier: codeVerifier,
163
+ redirect_uri: redirectUri,
164
+ nonce
165
+ },
166
+ user
167
+ };
168
+ }
169
+ };
170
+ }
171
+ function claimsOf(user, scopes) {
172
+ return Object.fromEntries(scopes.flatMap((scope) => SCOPE_CLAIMS[scope]).flatMap((claim) => user[claim] === void 0 ? [] : [[claim, user[claim]]]));
173
+ }
174
+ function parseScopes(value) {
175
+ const known = CLIENT_SCOPES;
176
+ return (value?.split(" ") ?? []).filter((scope) => known.includes(scope));
177
+ }
178
+ function basicCredentials(header) {
179
+ if (!header?.startsWith("Basic ")) return [null, null];
180
+ const [id, secret] = atob(header.slice(6)).split(":");
181
+ return [id ? decodeURIComponent(id) : null, secret ? decodeURIComponent(secret) : null];
182
+ }
183
+ function oauthError(error, status) {
184
+ return Response.json({ error }, {
185
+ status,
186
+ headers: { "cache-control": "no-store" }
187
+ });
188
+ }
189
+ /** 진짜 IdP처럼 issuer와 브라우저용 endpoint는 `api.`를 뺀 로그인 페이지 host에 둔다. */
190
+ function frontOrigin(apiOrigin) {
191
+ return apiOrigin.replace("://api.", "://");
192
+ }
193
+ function discovery(apiOrigin) {
194
+ const front = frontOrigin(apiOrigin);
195
+ return {
196
+ issuer: front,
197
+ authorization_endpoint: `${front}${IDP_PAGE_PATHS.authorize}`,
198
+ end_session_endpoint: `${front}${IDP_PAGE_PATHS.logout}`,
199
+ token_endpoint: `${apiOrigin}/oauth/token`,
200
+ userinfo_endpoint: `${apiOrigin}/oauth/userinfo`,
201
+ jwks_uri: `${apiOrigin}/oauth/certs`,
202
+ revocation_endpoint: `${apiOrigin}/oauth/revoke`,
203
+ scopes_supported: SCOPES,
204
+ response_types_supported: ["code"],
205
+ grant_types_supported: GRANT_TYPES,
206
+ id_token_signing_alg_values_supported: ["ES256"],
207
+ code_challenge_methods_supported: [CODE_CHALLENGE_METHOD]
208
+ };
209
+ }
210
+ //#endregion
211
+ export { createFakeIdp, fakeUser };
package/package.json CHANGED
@@ -1,6 +1,43 @@
1
1
  {
2
2
  "name": "@infoteam/account-testing",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.6.1",
4
+ "description": "In-memory fake of the Infoteam account IdP for testing services that use the account SDK",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/gsainfoteam/account-sdk.git",
10
+ "directory": "packages/testing"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "sideEffects": false,
19
+ "exports": {
20
+ ".": "./dist/index.js",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "^24.0.0",
25
+ "tsdown": "^0.23.0",
26
+ "typescript": "~6.0.3"
27
+ },
28
+ "engines": {
29
+ "node": ">=20.19"
30
+ },
31
+ "dependencies": {
32
+ "@faker-js/faker": "^9.9.0",
33
+ "@infoteam/account-contract": "^0.3.0",
34
+ "jose": "^6.2.12",
35
+ "oauth4webapi": "^3.8.8"
36
+ },
37
+ "types": "./dist/index.d.ts",
38
+ "scripts": {
39
+ "build": "tsdown",
40
+ "typecheck": "tsc --noEmit",
41
+ "lint": "eslint ."
42
+ }
6
43
  }