@spfn/auth 0.1.0-alpha.86 → 0.1.0-alpha.87

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.
@@ -54,6 +54,13 @@ type ClientRegisterParams = {
54
54
  * Interceptor automatically generates and injects publicKey fields
55
55
  */
56
56
  declare const login: (params: ClientLoginParams) => Promise<{
57
+ success: false;
58
+ error: {
59
+ details?: any;
60
+ code: string;
61
+ message: string;
62
+ };
63
+ } | {
57
64
  message?: string | undefined;
58
65
  success: true;
59
66
  data: {
@@ -62,13 +69,6 @@ declare const login: (params: ClientLoginParams) => Promise<{
62
69
  userId: string;
63
70
  passwordChangeRequired: boolean;
64
71
  };
65
- } | {
66
- success: false;
67
- error: {
68
- details?: any;
69
- message: string;
70
- code: string;
71
- };
72
72
  }>;
73
73
  /**
74
74
  * Register new account
@@ -79,8 +79,8 @@ declare const register: (params: ClientRegisterParams) => Promise<{
79
79
  success: false;
80
80
  error: {
81
81
  details?: any;
82
- message: string;
83
82
  code: string;
83
+ message: string;
84
84
  };
85
85
  } | {
86
86
  message?: string | undefined;
@@ -100,8 +100,8 @@ declare const logout: () => Promise<{
100
100
  success: false;
101
101
  error: {
102
102
  details?: any;
103
- message: string;
104
103
  code: string;
104
+ message: string;
105
105
  };
106
106
  } | {
107
107
  message?: string | undefined;
@@ -119,8 +119,8 @@ declare const rotateKey: () => Promise<{
119
119
  success: false;
120
120
  error: {
121
121
  details?: any;
122
- message: string;
123
122
  code: string;
123
+ message: string;
124
124
  };
125
125
  } | {
126
126
  message?: string | undefined;
@@ -135,6 +135,13 @@ declare const rotateKey: () => Promise<{
135
135
  */
136
136
  declare const authApi: {
137
137
  readonly login: (params: ClientLoginParams) => Promise<{
138
+ success: false;
139
+ error: {
140
+ details?: any;
141
+ code: string;
142
+ message: string;
143
+ };
144
+ } | {
138
145
  message?: string | undefined;
139
146
  success: true;
140
147
  data: {
@@ -143,20 +150,13 @@ declare const authApi: {
143
150
  userId: string;
144
151
  passwordChangeRequired: boolean;
145
152
  };
146
- } | {
147
- success: false;
148
- error: {
149
- details?: any;
150
- message: string;
151
- code: string;
152
- };
153
153
  }>;
154
154
  readonly register: (params: ClientRegisterParams) => Promise<{
155
155
  success: false;
156
156
  error: {
157
157
  details?: any;
158
- message: string;
159
158
  code: string;
159
+ message: string;
160
160
  };
161
161
  } | {
162
162
  message?: string | undefined;
@@ -171,8 +171,8 @@ declare const authApi: {
171
171
  success: false;
172
172
  error: {
173
173
  details?: any;
174
- message: string;
175
174
  code: string;
175
+ message: string;
176
176
  };
177
177
  } | {
178
178
  message?: string | undefined;
@@ -185,8 +185,8 @@ declare const authApi: {
185
185
  success: false;
186
186
  error: {
187
187
  details?: any;
188
- message: string;
189
188
  code: string;
189
+ message: string;
190
190
  };
191
191
  } | {
192
192
  message?: string | undefined;
@@ -199,19 +199,19 @@ declare const authApi: {
199
199
  readonly sendVerificationCode: (options: {
200
200
  body: SendVerificationCodeBody;
201
201
  }) => Promise<{
202
- success: false;
203
- error: {
204
- details?: any;
205
- message: string;
206
- code: string;
207
- };
208
- } | {
209
202
  message?: string | undefined;
210
203
  success: true;
211
204
  data: {
212
205
  success: boolean;
213
206
  expiresAt: string;
214
207
  };
208
+ } | {
209
+ success: false;
210
+ error: {
211
+ details?: any;
212
+ code: string;
213
+ message: string;
214
+ };
215
215
  }>;
216
216
  readonly verifyCode: (options: {
217
217
  body: VerifyCodeBody;
@@ -219,8 +219,8 @@ declare const authApi: {
219
219
  success: false;
220
220
  error: {
221
221
  details?: any;
222
- message: string;
223
222
  code: string;
223
+ message: string;
224
224
  };
225
225
  } | {
226
226
  message?: string | undefined;
@@ -236,8 +236,8 @@ declare const authApi: {
236
236
  success: false;
237
237
  error: {
238
238
  details?: any;
239
- message: string;
240
239
  code: string;
240
+ message: string;
241
241
  };
242
242
  } | {
243
243
  message?: string | undefined;
@@ -254,8 +254,8 @@ declare const authApi: {
254
254
  success: false;
255
255
  error: {
256
256
  details?: any;
257
- message: string;
258
257
  code: string;
258
+ message: string;
259
259
  };
260
260
  } | {
261
261
  message?: string | undefined;
@@ -270,8 +270,8 @@ declare const authApi: {
270
270
  success: false;
271
271
  error: {
272
272
  details?: any;
273
- message: string;
274
273
  code: string;
274
+ message: string;
275
275
  };
276
276
  } | {
277
277
  message?: string | undefined;
@@ -300,8 +300,8 @@ declare const authApi: {
300
300
  success: false;
301
301
  error: {
302
302
  details?: any;
303
- message: string;
304
303
  code: string;
304
+ message: string;
305
305
  };
306
306
  } | {
307
307
  message?: string | undefined;
@@ -321,8 +321,8 @@ declare const authApi: {
321
321
  success: false;
322
322
  error: {
323
323
  details?: any;
324
- message: string;
325
324
  code: string;
325
+ message: string;
326
326
  };
327
327
  } | {
328
328
  message?: string | undefined;
@@ -342,8 +342,8 @@ declare const authApi: {
342
342
  success: false;
343
343
  error: {
344
344
  details?: any;
345
- message: string;
346
345
  code: string;
346
+ message: string;
347
347
  };
348
348
  } | {
349
349
  message?: string | undefined;
@@ -379,8 +379,8 @@ declare const authApi: {
379
379
  success: false;
380
380
  error: {
381
381
  details?: any;
382
- message: string;
383
382
  code: string;
383
+ message: string;
384
384
  };
385
385
  } | {
386
386
  message?: string | undefined;
@@ -397,8 +397,8 @@ declare const authApi: {
397
397
  success: false;
398
398
  error: {
399
399
  details?: any;
400
- message: string;
401
400
  code: string;
401
+ message: string;
402
402
  };
403
403
  } | {
404
404
  message?: string | undefined;
@@ -414,8 +414,8 @@ declare const authApi: {
414
414
  success: false;
415
415
  error: {
416
416
  details?: any;
417
- message: string;
418
417
  code: string;
418
+ message: string;
419
419
  };
420
420
  } | {
421
421
  message?: string | undefined;
@@ -431,8 +431,8 @@ declare const authApi: {
431
431
  success: false;
432
432
  error: {
433
433
  details?: any;
434
- message: string;
435
434
  code: string;
435
+ message: string;
436
436
  };
437
437
  } | {
438
438
  message?: string | undefined;