auth-mn 0.1.9 → 1.0.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/dist/index.d.ts CHANGED
@@ -1,449 +1,114 @@
1
- export declare const jsonToQueryString: (params: Record<string, any>) => string;
2
- export declare const ObjectId: () => string;
1
+ /**
2
+ * auth-mn — Auth.mn API client (Node.js)
3
+ *
4
+ * import authMn, { setAuth, setHost } from "auth-mn";
5
+ * setHost("prod"); // эсвэл setHost({ MAIN: "https://..." })
6
+ * setAuth({ client_id: "cl_...", client_secret: "sk_..." });
7
+ * const v = await authMn.user.verify(userTokenFromFrontend); // → v.data.user
8
+ *
9
+ * Token-ийг lib өөрөө авч, хугацаа дуусахаас өмнө refresh хийнэ.
10
+ * Client-д олгосон permission-ээс гадуур API дуудвал 403 + message буцна.
11
+ *
12
+ * Хамрах хүрээ: хэрэглэгч (verify / find), мэдэгдэл (push / sms / mail),
13
+ * socket (toast / status / orderStatus / emit). Merchant/admin зэрэг дотоод
14
+ * бүртгэлүүд энэ санд байхгүй.
15
+ */
16
+ import auth from "./auth";
17
+ import user from "./user";
18
+ import notification from "./notification";
19
+ import socket from "./socket";
20
+ export type Env = "prod" | "staging";
3
21
  export type Config = {
4
- token: string;
5
- env: "prod" | "staging";
22
+ env: Env;
6
23
  hosts: {
7
24
  MAIN: string;
8
25
  WALLET: string;
9
26
  };
10
27
  auth: {
11
- username: string;
12
- password: string;
28
+ client_id: string;
29
+ client_secret: string;
13
30
  };
14
31
  logger: boolean;
32
+ /** Хүсэлтийн timeout (ms), default 20000 */
33
+ timeout: number;
15
34
  };
16
35
  export declare const config: Config;
17
- export declare const setHost: ({ MAIN, WALLET }: {
36
+ /** Host тохируулна: setHost("staging") эсвэл setHost({ MAIN, WALLET }, "prod") */
37
+ export declare const setHost: (hosts: Env | {
18
38
  MAIN: string;
19
- WALLET: string;
20
- }, ENV: "staging" | "prod") => void;
39
+ WALLET?: string;
40
+ }, env?: Env) => void;
41
+ /** client_id + client_secret (Admin panel → Апп-ууд дээрээс авна) */
42
+ export declare const setAuth: (auth: {
43
+ client_id: string;
44
+ client_secret: string;
45
+ }) => void;
21
46
  export declare const setLogger: (status: boolean) => void;
47
+ export declare const jsonToQueryString: (params: Record<string, any>) => string;
48
+ export declare const ObjectId: () => string;
49
+ import { authState } from "./auth";
50
+ export { auth, user, notification, socket, authState };
51
+ export * from "./types";
22
52
  declare const _default: {
23
53
  auth: {
24
- TOKEN: (auth: {
54
+ getToken: () => Promise<string>;
55
+ login: () => Promise<import("./types").Result<import("./types").TokenData>>;
56
+ refresh: () => Promise<import("./types").Result<import("./types").TokenData>>;
57
+ revoke: () => Promise<import("./types").Result<null>>;
58
+ me: () => Promise<import("./types").Result<import("./types").ClientInfo>>;
59
+ permissions: () => Promise<import("./types").Result<import("./types").PermissionGroup[]>>;
60
+ hasPermission: (perm: string) => boolean;
61
+ TOKEN: (_legacy?: {
25
62
  username: string;
26
63
  password: string;
27
64
  }) => Promise<string>;
65
+ state: import("./auth").AuthState;
28
66
  };
29
- ObjectId: () => string;
30
- notification: {
31
- SinglePushNoti: (body: {
32
- user_id: number;
33
- target_app: "AVDAR-STORE" | "AUTH-APP" | "E-SIM" | "SELLER-PANDA";
34
- body: {
35
- title: string;
36
- body: string;
37
- icon: string;
38
- image?: string;
39
- button?: {
40
- title: string;
41
- url: string;
42
- } | null;
43
- };
44
- }) => Promise<{
45
- success: boolean;
46
- data: null;
47
- message: string;
48
- }>;
49
- SMS: (body: {
50
- text: string;
51
- to: string;
52
- from: string;
53
- }) => Promise<{
54
- success: boolean;
55
- data: null;
56
- message: string;
57
- }>;
58
- MAIL: (body: {
59
- type: "notification" | "otp" | "custom";
60
- form?: {
61
- name?: string;
62
- email?: string;
63
- };
64
- to: string[];
65
- subject: string;
66
- body: {
67
- name: string;
68
- title?: string;
69
- desc?: string;
70
- otp?: string | number;
71
- button?: {
72
- text: string;
73
- url: string | null;
74
- };
75
- footer_text?: string;
67
+ user: {
68
+ verify: (token: string) => Promise<import("./types").Result<import("./types").VerifiedUser>>;
69
+ find: (query: {
70
+ user_id?: number | string;
71
+ phone_number?: string;
72
+ email?: string;
73
+ }) => Promise<import("./types").Result<import("./types").UserT>>;
74
+ middleware: (opts?: import("./user").MiddlewareOptions) => (req: {
75
+ [k: string]: any;
76
+ headers: Record<string, any>;
77
+ query?: any;
78
+ body?: any;
79
+ }, res: {
80
+ status: (code: number) => {
81
+ json: (b: any) => any;
76
82
  };
77
- }) => Promise<{
78
- success: boolean;
79
- data: null;
80
- message: string;
81
- }>;
82
- _3RD: {
83
- TOKI: (body: {
84
- accountId: string;
85
- title: string;
86
- body: string;
87
- url: string;
88
- buttonName: string;
89
- imageURL?: string;
90
- icon: string;
91
- }) => Promise<{
92
- success: boolean;
93
- data: null;
94
- message: string;
95
- }>;
96
- HIPAY: (body: {
97
- customerId: string;
98
- message: string;
99
- }) => Promise<{
100
- success: boolean;
101
- data: null;
102
- message: string;
103
- }>;
104
- };
83
+ }, next: (err?: any) => void) => Promise<any>;
105
84
  };
106
- socket: {
107
- ShowToast: (body: {
108
- user_id: number;
109
- type: "info" | "warning";
110
- text: string;
111
- }) => Promise<{
112
- success: boolean;
113
- data: null;
114
- message: string;
115
- }>;
116
- ShowStatus: (body: {
117
- user_id: number;
118
- id: string;
119
- type?: "Loading" | "Success" | "Failure";
120
- title?: string;
121
- amount?: number | string;
122
- desc?: string;
123
- footer?: {
124
- text: string;
125
- buttons: {
126
- text: string;
127
- fun: "href" | "close" | "exit";
128
- href?: string | null;
129
- }[];
130
- };
131
- show?: boolean;
132
- expired_date?: Date;
133
- start_date?: Date;
134
- }) => Promise<{
135
- success: boolean;
136
- data: null;
137
- message: string;
138
- }>;
139
- ShowOrderStatus: (body: {
140
- user_id: number;
141
- order_id: string;
142
- }) => Promise<{
143
- success: boolean;
144
- data: null;
145
- message: string;
146
- }>;
85
+ notification: {
86
+ push: (body: import("./types").PushNotiT) => Promise<import("./types").Result<null>>;
87
+ sms: (body: import("./types").SmsT) => Promise<import("./types").Result<null>>;
88
+ mail: (body: import("./types").MailT) => Promise<import("./types").Result<null>>;
89
+ SinglePushNoti: (body: import("./types").PushNotiT) => Promise<import("./types").Result<null>>;
90
+ SMS: (body: import("./types").SmsT) => Promise<import("./types").Result<null>>;
91
+ MAIL: (body: import("./types").MailT) => Promise<import("./types").Result<null>>;
147
92
  };
148
- find: {
149
- USER: (body: {
150
- _id?: string;
151
- user_id?: number;
152
- user_name?: string;
153
- nick_name?: string;
154
- exp?: number;
155
- primary_email?: string;
156
- primary_phone?: string;
157
- emails?: Array<{
158
- email: string;
159
- verified: boolean;
160
- primary: boolean;
161
- }>;
162
- phone_numbers?: Array<{
163
- number: string;
164
- verified: boolean;
165
- primary: boolean;
166
- }>;
167
- auth_profiles?: {
168
- facebook_id?: string;
169
- google_id?: string;
170
- steam_id?: string;
171
- apple_id?: string;
172
- twitter_id?: string;
173
- monpay_id?: string;
174
- toki_id?: string;
175
- social_id?: string;
176
- hipay_id?: string;
177
- digi_id?: string;
178
- };
179
- profile_image_url?: string;
180
- date_of_birth?: Date;
181
- gender?: "MEN" | "WOMEN";
182
- sign_up_date?: Date;
183
- last_login?: Date;
184
- wallet_id?: string;
185
- wallet_key?: string;
186
- preferences?: {
187
- language?: string;
188
- notifications?: boolean;
189
- };
190
- status?: {
191
- is_active?: boolean;
192
- is_banned?: boolean;
193
- verified?: boolean;
194
- };
195
- security?: {
196
- password_hash?: string;
197
- two_factor_enabled?: boolean;
198
- last_password_change?: Date;
199
- };
200
- verify_info?: {
201
- first_name?: string;
202
- last_name?: string;
203
- born_date?: Date;
204
- national_id?: string;
205
- };
206
- dynamic_info?: {
207
- [key: string]: any;
208
- };
209
- apps?: {
210
- app_name: string;
211
- app_id: string;
212
- device_id: string;
213
- }[];
214
- createdAt?: Date;
215
- updatedAt?: Date;
216
- }) => Promise<{
217
- success: boolean;
218
- data: {
219
- _id?: string;
220
- user_id?: number;
221
- user_name?: string;
222
- nick_name?: string;
223
- exp?: number;
224
- primary_email?: string;
225
- primary_phone?: string;
226
- emails?: Array<{
227
- email: string;
228
- verified: boolean;
229
- primary: boolean;
230
- }>;
231
- phone_numbers?: Array<{
232
- number: string;
233
- verified: boolean;
234
- primary: boolean;
235
- }>;
236
- auth_profiles?: {
237
- facebook_id?: string;
238
- google_id?: string;
239
- steam_id?: string;
240
- apple_id?: string;
241
- twitter_id?: string;
242
- monpay_id?: string;
243
- toki_id?: string;
244
- social_id?: string;
245
- hipay_id?: string;
246
- digi_id?: string;
247
- };
248
- profile_image_url?: string;
249
- date_of_birth?: Date;
250
- gender?: "MEN" | "WOMEN";
251
- sign_up_date?: Date;
252
- last_login?: Date;
253
- wallet_id?: string;
254
- wallet_key?: string;
255
- preferences?: {
256
- language?: string;
257
- notifications?: boolean;
258
- };
259
- status?: {
260
- is_active?: boolean;
261
- is_banned?: boolean;
262
- verified?: boolean;
263
- };
264
- security?: {
265
- password_hash?: string;
266
- two_factor_enabled?: boolean;
267
- last_password_change?: Date;
268
- };
269
- verify_info?: {
270
- first_name?: string;
271
- last_name?: string;
272
- born_date?: Date;
273
- national_id?: string;
274
- };
275
- dynamic_info?: {
276
- [key: string]: any;
277
- };
278
- apps?: {
279
- app_name: string;
280
- app_id: string;
281
- device_id: string;
282
- }[];
283
- createdAt?: Date;
284
- updatedAt?: Date;
285
- }[];
286
- message: string;
287
- }>;
288
- MERCHANT: (body: {
289
- _id?: string;
290
- user_id: number;
291
- user_name?: string;
292
- phone_number?: string;
293
- user_role?: "merchant" | "sub-merchant";
294
- avatar?: string;
295
- authority?: string[];
296
- user_email?: string;
297
- password?: string;
298
- show_router?: string[];
299
- show_id?: string[];
300
- merchant: {
301
- toki_id: string;
302
- hipay: string;
303
- };
304
- wallet_id?: string;
305
- wallet_key?: string;
306
- delFlg?: boolean;
307
- createdAt?: Date;
308
- updatedAt?: Date;
309
- }) => Promise<{
310
- success: boolean;
311
- data: {
312
- _id?: string;
313
- user_id: number;
314
- user_name?: string;
315
- phone_number?: string;
316
- user_role?: "merchant" | "sub-merchant";
317
- avatar?: string;
318
- authority?: string[];
319
- user_email?: string;
320
- password?: string;
321
- show_router?: string[];
322
- show_id?: string[];
323
- merchant: {
324
- toki_id: string;
325
- hipay: string;
326
- };
327
- wallet_id?: string;
328
- wallet_key?: string;
329
- delFlg?: boolean;
330
- createdAt?: Date;
331
- updatedAt?: Date;
332
- }[];
333
- message: string;
334
- }>;
335
- ADMIN: (body: {
336
- _id?: string;
337
- user_id?: number;
338
- user_name?: string;
339
- phone_number?: number;
340
- user_role?: "admin" | "sub-admin" | "super-admin";
341
- avatar?: string;
342
- authority?: string[];
343
- user_email?: string;
344
- password?: string;
345
- show_router?: string[];
346
- show_id?: string[];
347
- delFlg?: boolean;
348
- createdAt?: Date;
349
- updatedAt?: Date;
350
- }) => Promise<{
351
- success: boolean;
352
- data: {
353
- _id?: string;
354
- user_id?: number;
355
- user_name?: string;
356
- phone_number?: number;
357
- user_role?: "admin" | "sub-admin" | "super-admin";
358
- avatar?: string;
359
- authority?: string[];
360
- user_email?: string;
361
- password?: string;
362
- show_router?: string[];
363
- show_id?: string[];
364
- delFlg?: boolean;
365
- createdAt?: Date;
366
- updatedAt?: Date;
367
- }[];
368
- message: string;
369
- }>;
370
- CLIENT: (body: {
371
- _id?: string;
372
- user_id?: number;
373
- user_name?: string;
374
- phone_number?: number;
375
- user_role?: "crm" | "sub-crm";
376
- avatar?: string;
377
- authority?: string[];
378
- user_email?: string;
379
- password?: string;
380
- show_router?: string[];
381
- show_id?: string[];
382
- RefundFun?: boolean;
383
- delFlg?: boolean;
384
- createdAt?: Date;
385
- updatedAt?: Date;
386
- }) => Promise<{
387
- success: boolean;
388
- data: {
389
- _id?: string;
390
- user_id?: number;
391
- user_name?: string;
392
- phone_number?: number;
393
- user_role?: "crm" | "sub-crm";
394
- avatar?: string;
395
- authority?: string[];
396
- user_email?: string;
397
- password?: string;
398
- show_router?: string[];
399
- show_id?: string[];
400
- RefundFun?: boolean;
401
- delFlg?: boolean;
402
- createdAt?: Date;
403
- updatedAt?: Date;
404
- }[];
405
- message: string;
406
- }>;
407
- CRM: (body: {
408
- _id?: string;
409
- user_id?: number;
410
- user_name?: string;
411
- phone_number?: number;
412
- user_role?: "crm" | "sub-crm";
413
- avatar?: string;
414
- authority?: string[];
415
- user_email?: string;
416
- password?: string;
417
- show_router?: string[];
418
- show_id?: string[];
419
- RefundFun?: boolean;
420
- delFlg?: boolean;
421
- createdAt?: Date;
422
- updatedAt?: Date;
423
- }) => Promise<{
424
- success: boolean;
425
- data: {
426
- _id?: string;
427
- user_id?: number;
428
- user_name?: string;
429
- phone_number?: number;
430
- user_role?: "crm" | "sub-crm";
431
- avatar?: string;
432
- authority?: string[];
433
- user_email?: string;
434
- password?: string;
435
- show_router?: string[];
436
- show_id?: string[];
437
- RefundFun?: boolean;
438
- delFlg?: boolean;
439
- createdAt?: Date;
440
- updatedAt?: Date;
441
- }[];
442
- message: string;
443
- }>;
93
+ socket: {
94
+ toast: (body: import("./types").ToastT) => Promise<import("./types").Result<null>>;
95
+ status: (body: import("./types").StatusT) => Promise<import("./types").Result<null>>;
96
+ orderStatus: (body: import("./types").OrderStatusT) => Promise<import("./types").Result<null>>;
97
+ emit: (body: import("./types").EmitT[]) => Promise<import("./types").Result<null>>;
98
+ ShowToast: (body: import("./types").ToastT) => Promise<import("./types").Result<null>>;
99
+ ShowStatus: (body: import("./types").StatusT) => Promise<import("./types").Result<null>>;
100
+ ShowOrderStatus: (body: import("./types").OrderStatusT) => Promise<import("./types").Result<null>>;
101
+ EMIT: (body: import("./types").EmitT[]) => Promise<import("./types").Result<null>>;
444
102
  };
103
+ setAuth: (auth: {
104
+ client_id: string;
105
+ client_secret: string;
106
+ }) => void;
107
+ setHost: (hosts: Env | {
108
+ MAIN: string;
109
+ WALLET?: string;
110
+ }, env?: Env) => void;
111
+ setLogger: (status: boolean) => void;
112
+ ObjectId: () => string;
445
113
  };
446
114
  export default _default;
447
- export { default as notification } from "./notification";
448
- export { default as socket } from "./socket";
449
- export { default as find } from "./find";
package/dist/index.js CHANGED
@@ -1,13 +1,86 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.find = exports.socket = exports.notification = exports.setLogger = exports.setHost = exports.config = exports.ObjectId = exports.jsonToQueryString = void 0;
17
+ exports.authState = exports.socket = exports.notification = exports.user = exports.auth = exports.ObjectId = exports.jsonToQueryString = exports.setLogger = exports.setAuth = exports.setHost = exports.config = void 0;
18
+ /**
19
+ * auth-mn — Auth.mn API client (Node.js)
20
+ *
21
+ * import authMn, { setAuth, setHost } from "auth-mn";
22
+ * setHost("prod"); // эсвэл setHost({ MAIN: "https://..." })
23
+ * setAuth({ client_id: "cl_...", client_secret: "sk_..." });
24
+ * const v = await authMn.user.verify(userTokenFromFrontend); // → v.data.user
25
+ *
26
+ * Token-ийг lib өөрөө авч, хугацаа дуусахаас өмнө refresh хийнэ.
27
+ * Client-д олгосон permission-ээс гадуур API дуудвал 403 + message буцна.
28
+ *
29
+ * Хамрах хүрээ: хэрэглэгч (verify / find), мэдэгдэл (push / sms / mail),
30
+ * socket (toast / status / orderStatus / emit). Merchant/admin зэрэг дотоод
31
+ * бүртгэлүүд энэ санд байхгүй.
32
+ */
4
33
  const auth_1 = require("./auth");
34
+ exports.auth = auth_1.default;
35
+ const user_1 = require("./user");
36
+ exports.user = user_1.default;
5
37
  const notification_1 = require("./notification");
38
+ exports.notification = notification_1.default;
6
39
  const socket_1 = require("./socket");
7
- const find_1 = require("./find");
40
+ exports.socket = socket_1.default;
41
+ const HOSTS = {
42
+ prod: { MAIN: "https://api.auth.mn", WALLET: "https://api.auth.mn" },
43
+ staging: { MAIN: "https://staging-api.auth.mn", WALLET: "https://staging-api.auth.mn" }
44
+ };
45
+ exports.config = {
46
+ env: "prod",
47
+ hosts: { ...HOSTS.prod },
48
+ auth: { client_id: "", client_secret: "" },
49
+ logger: false,
50
+ timeout: 20000
51
+ };
52
+ /** Host тохируулна: setHost("staging") эсвэл setHost({ MAIN, WALLET }, "prod") */
53
+ const setHost = (hosts, env) => {
54
+ if (typeof hosts === "string") {
55
+ exports.config.env = hosts;
56
+ exports.config.hosts = { ...HOSTS[hosts] };
57
+ }
58
+ else {
59
+ exports.config.hosts.MAIN = hosts.MAIN.replace(/\/$/, "");
60
+ exports.config.hosts.WALLET = (hosts.WALLET || hosts.MAIN).replace(/\/$/, "");
61
+ if (env)
62
+ exports.config.env = env;
63
+ }
64
+ if (exports.config.logger)
65
+ console.log("[auth-mn] hosts:", exports.config.hosts, "env:", exports.config.env);
66
+ };
67
+ exports.setHost = setHost;
68
+ /** client_id + client_secret (Admin panel → Апп-ууд дээрээс авна) */
69
+ const setAuth = (auth) => {
70
+ exports.config.auth.client_id = auth.client_id;
71
+ exports.config.auth.client_secret = auth.client_secret;
72
+ // шинэ credential → хуучин token-ийг хаяна
73
+ auth_2.authState.clear();
74
+ };
75
+ exports.setAuth = setAuth;
76
+ const setLogger = (status) => {
77
+ exports.config.logger = status;
78
+ };
79
+ exports.setLogger = setLogger;
8
80
  const jsonToQueryString = (params) => {
9
81
  const query = Object.entries(params)
10
- .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
82
+ .filter(([, v]) => v !== undefined && v !== null)
83
+ .map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(String(v))}`)
11
84
  .join("&");
12
85
  return query ? `?${query}` : "";
13
86
  };
@@ -15,49 +88,10 @@ exports.jsonToQueryString = jsonToQueryString;
15
88
  const ObjectId = () => {
16
89
  const timestamp = ((Date.now() / 1000) | 0).toString(16);
17
90
  return (timestamp +
18
- "xxxxxxxxxxxxxxxx"
19
- .replace(/[x]/g, () => ((Math.random() * 16) | 0).toString(16))
20
- .toLowerCase());
91
+ "xxxxxxxxxxxxxxxx".replace(/[x]/g, () => ((Math.random() * 16) | 0).toString(16)).toLowerCase());
21
92
  };
22
93
  exports.ObjectId = ObjectId;
23
- exports.config = {
24
- token: "",
25
- env: "staging",
26
- hosts: {
27
- MAIN: "https://staging-api.auth.mn",
28
- WALLET: "https://staging-api.auth.mn"
29
- },
30
- auth: {
31
- username: "",
32
- password: ""
33
- },
34
- logger: false
35
- };
36
- // Function to set the host URLs for API requests
37
- const setHost = ({ MAIN, WALLET }, ENV) => {
38
- exports.config.hosts.MAIN = MAIN;
39
- exports.config.hosts.WALLET = WALLET;
40
- exports.config.env = ENV;
41
- console.log("Auth.mn Hosts set to:", exports.config.hosts);
42
- console.log("Auth.mn Environment set to:", ENV);
43
- };
44
- exports.setHost = setHost;
45
- // Function to enable or disable logging
46
- const setLogger = (status) => {
47
- exports.config.logger = status;
48
- console.log("Logger status set to:", status);
49
- };
50
- exports.setLogger = setLogger;
51
- exports.default = {
52
- auth: auth_1.default,
53
- ObjectId: exports.ObjectId,
54
- notification: notification_1.default,
55
- socket: socket_1.default,
56
- find: find_1.default
57
- };
58
- var notification_2 = require("./notification");
59
- Object.defineProperty(exports, "notification", { enumerable: true, get: function () { return notification_2.default; } });
60
- var socket_2 = require("./socket");
61
- Object.defineProperty(exports, "socket", { enumerable: true, get: function () { return socket_2.default; } });
62
- var find_2 = require("./find");
63
- Object.defineProperty(exports, "find", { enumerable: true, get: function () { return find_2.default; } });
94
+ const auth_2 = require("./auth");
95
+ Object.defineProperty(exports, "authState", { enumerable: true, get: function () { return auth_2.authState; } });
96
+ __exportStar(require("./types"), exports);
97
+ exports.default = { auth: auth_1.default, user: user_1.default, notification: notification_1.default, socket: socket_1.default, setAuth: exports.setAuth, setHost: exports.setHost, setLogger: exports.setLogger, ObjectId: exports.ObjectId };