local-lite 0.1.2 → 0.1.4
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/README.md +9 -1
- package/bin/local-lite.mjs +1 -1
- package/dist/auth/apple.js +6 -2
- package/dist/auth/github.js +6 -2
- package/dist/auth/google.js +6 -2
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/auth/local/index.d.ts +1 -0
- package/dist/auth/local/index.js +17 -0
- package/dist/auth/local.d.ts +285 -0
- package/dist/auth/local.js +709 -0
- package/dist/auth/microsoft.js +7 -2
- package/dist/backups/onedrive.d.ts +2 -1
- package/dist/backups/onedrive.js +6 -2
- package/dist/config/index.js +1 -0
- package/dist/config/types.d.ts +7 -0
- package/dist/core/client.d.ts +4 -0
- package/dist/core/client.js +6 -1
- package/dist/keys/generator.js +12 -3
- package/dist/react/auth.d.ts +21 -0
- package/dist/react/auth.js +121 -0
- package/dist/utils/dynamic.js +0 -6
- package/dist/utils/uuid.d.ts +3 -4
- package/dist/utils/uuid.js +40 -10
- package/docs/auth.md +85 -2
- package/package.json +6 -1
- package/skills/local-lite-auth/SKILL.md +189 -0
- package/skills/local-lite-backups/SKILL.md +164 -0
- package/skills/local-lite-offline-actions/SKILL.md +122 -0
- package/skills/local-lite-react/SKILL.md +124 -0
- package/skills/local-lite-schema/SKILL.md +171 -0
- package/skills/local-lite-setup/SKILL.md +203 -21
- package/skills/local-lite-storage/SKILL.md +116 -0
- package/skills/local-lite-upgrade/SKILL.md +45 -16
package/README.md
CHANGED
|
@@ -93,7 +93,15 @@ For an application-level upgrade checklist or AI-assisted code review, see the
|
|
|
93
93
|
## AI Skills
|
|
94
94
|
|
|
95
95
|
The package ships [Agent Skills](./skills) that AI coding assistants can load:
|
|
96
|
-
`local-lite-setup
|
|
96
|
+
* `local-lite-setup`: Multi-platform setup (Expo, Web, Node) and client initialization.
|
|
97
|
+
* `local-lite-auth`: Zero-backend SQLite authentication, PBKDF2 crypto, lockout, reset tokens, and OAuth.
|
|
98
|
+
* `local-lite-backups`: Cloud backups (OneDrive, Google Drive), AES-256-GCM database encryption, and restore.
|
|
99
|
+
* `local-lite-schema`: Declarative cascading deletions (`onDelete`), append-only migrations, and FTS5 search.
|
|
100
|
+
* `local-lite-storage`: Blob and file management, ExpoFileDriver, and cloud storage bucket sync.
|
|
101
|
+
* `local-lite-react`: Reactive hooks (`useLiveQuery`, `useSyncStatus`, `useLocalAuth`, `useKV`), and 0ms optimistic writes.
|
|
102
|
+
* `local-lite-offline-actions`: Queued mutation outbox, encrypted secret preferences, and background scheduler.
|
|
103
|
+
* `local-lite-custom-adapter`: Implementing custom REST, GraphQL, or WebSocket remote database adapters.
|
|
104
|
+
* `local-lite-upgrade`: Migration checklist and breaking change reviews across version upgrades.
|
|
97
105
|
|
|
98
106
|
```bash
|
|
99
107
|
npx local-lite install-skills # Copilot: .github/skills
|
package/bin/local-lite.mjs
CHANGED
package/dist/auth/apple.js
CHANGED
|
@@ -7,9 +7,13 @@ exports.APPLE_AUTHORIZATION_ENDPOINT = 'https://appleid.apple.com/auth/authorize
|
|
|
7
7
|
exports.APPLE_TOKEN_ENDPOINT = 'https://appleid.apple.com/auth/token';
|
|
8
8
|
exports.DEFAULT_APPLE_AUTH_SCOPES = ['name', 'email'];
|
|
9
9
|
function secureRandomBytes(length) {
|
|
10
|
-
const crypto = globalThis.crypto;
|
|
10
|
+
const crypto = typeof globalThis !== 'undefined' ? globalThis.crypto : undefined;
|
|
11
11
|
if (!crypto?.getRandomValues) {
|
|
12
|
-
|
|
12
|
+
const fallback = new Uint8Array(length);
|
|
13
|
+
for (let i = 0; i < length; i++) {
|
|
14
|
+
fallback[i] = Math.floor(Math.random() * 256);
|
|
15
|
+
}
|
|
16
|
+
return fallback;
|
|
13
17
|
}
|
|
14
18
|
return crypto.getRandomValues(new Uint8Array(length));
|
|
15
19
|
}
|
package/dist/auth/github.js
CHANGED
|
@@ -8,9 +8,13 @@ exports.GITHUB_TOKEN_ENDPOINT = 'https://github.com/login/oauth/access_token';
|
|
|
8
8
|
exports.GITHUB_API_ENDPOINT = 'https://api.github.com';
|
|
9
9
|
exports.DEFAULT_GITHUB_AUTH_SCOPES = ['read:user', 'user:email'];
|
|
10
10
|
function secureRandomBytes(length) {
|
|
11
|
-
const crypto = globalThis.crypto;
|
|
11
|
+
const crypto = typeof globalThis !== 'undefined' ? globalThis.crypto : undefined;
|
|
12
12
|
if (!crypto?.getRandomValues) {
|
|
13
|
-
|
|
13
|
+
const fallback = new Uint8Array(length);
|
|
14
|
+
for (let i = 0; i < length; i++) {
|
|
15
|
+
fallback[i] = Math.floor(Math.random() * 256);
|
|
16
|
+
}
|
|
17
|
+
return fallback;
|
|
14
18
|
}
|
|
15
19
|
return crypto.getRandomValues(new Uint8Array(length));
|
|
16
20
|
}
|
package/dist/auth/google.js
CHANGED
|
@@ -11,9 +11,13 @@ exports.GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';
|
|
|
11
11
|
exports.GOOGLE_USERINFO_ENDPOINT = 'https://www.googleapis.com/oauth2/v3/userinfo';
|
|
12
12
|
exports.DEFAULT_GOOGLE_AUTH_SCOPES = ['openid', 'email', 'profile'];
|
|
13
13
|
function secureRandomBytes(length) {
|
|
14
|
-
const crypto = globalThis.crypto;
|
|
14
|
+
const crypto = typeof globalThis !== 'undefined' ? globalThis.crypto : undefined;
|
|
15
15
|
if (!crypto?.getRandomValues) {
|
|
16
|
-
|
|
16
|
+
const fallback = new Uint8Array(length);
|
|
17
|
+
for (let i = 0; i < length; i++) {
|
|
18
|
+
fallback[i] = Math.floor(Math.random() * 256);
|
|
19
|
+
}
|
|
20
|
+
return fallback;
|
|
17
21
|
}
|
|
18
22
|
return crypto.getRandomValues(new Uint8Array(length));
|
|
19
23
|
}
|
package/dist/auth/index.d.ts
CHANGED
package/dist/auth/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../local.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../local.js"), exports);
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { DBExecutable } from '../core/schema-manager.js';
|
|
2
|
+
import { EventEmitter } from '../reactive/event-emitter.js';
|
|
3
|
+
import { SessionManager, SessionRecord, SessionManagerOptions } from './session.js';
|
|
4
|
+
export declare const DEFAULT_USERS_TABLE = "_local_users";
|
|
5
|
+
export declare const DEFAULT_USER_TOKENS_TABLE = "_local_user_tokens";
|
|
6
|
+
export declare const DEFAULT_PASSWORD_ALGORITHM = "PBKDF2-SHA256";
|
|
7
|
+
export declare const DEFAULT_PASSWORD_ITERATIONS = 1000;
|
|
8
|
+
export declare const DEFAULT_SALT_BYTES = 16;
|
|
9
|
+
export declare const DEFAULT_LOCKOUT_ATTEMPTS = 5;
|
|
10
|
+
export declare const DEFAULT_LOCKOUT_DURATION_MS: number;
|
|
11
|
+
export declare const DEFAULT_RESET_TOKEN_EXPIRY_MS: number;
|
|
12
|
+
export declare const DEFAULT_MIN_PASSWORD_LENGTH = 8;
|
|
13
|
+
export type UserStatus = 'active' | 'suspended' | 'locked';
|
|
14
|
+
export interface LocalUser<TMetadata = Record<string, any>> {
|
|
15
|
+
id: string;
|
|
16
|
+
email: string;
|
|
17
|
+
username?: string | null;
|
|
18
|
+
displayName?: string | null;
|
|
19
|
+
role: string;
|
|
20
|
+
metadata?: TMetadata | null;
|
|
21
|
+
status: UserStatus;
|
|
22
|
+
failedLoginAttempts: number;
|
|
23
|
+
lockedUntil?: number | null;
|
|
24
|
+
emailVerified: boolean;
|
|
25
|
+
createdAt: number;
|
|
26
|
+
updatedAt: number;
|
|
27
|
+
lastLoginAt?: number | null;
|
|
28
|
+
}
|
|
29
|
+
export interface StoredUserRow {
|
|
30
|
+
id: string;
|
|
31
|
+
email: string;
|
|
32
|
+
username: string | null;
|
|
33
|
+
display_name: string | null;
|
|
34
|
+
password_hash: string;
|
|
35
|
+
salt: string;
|
|
36
|
+
iterations: number;
|
|
37
|
+
algorithm: string;
|
|
38
|
+
role: string;
|
|
39
|
+
metadata: string | null;
|
|
40
|
+
status: UserStatus;
|
|
41
|
+
failed_login_attempts: number;
|
|
42
|
+
locked_until: number | null;
|
|
43
|
+
email_verified: number;
|
|
44
|
+
created_at: number;
|
|
45
|
+
updated_at: number;
|
|
46
|
+
last_login_at: number | null;
|
|
47
|
+
}
|
|
48
|
+
export interface LocalAuthEngineOptions {
|
|
49
|
+
/**
|
|
50
|
+
* Database table name for local users. Default: '_local_users'
|
|
51
|
+
*/
|
|
52
|
+
usersTable?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Database table name for reset/verification tokens. Default: '_local_user_tokens'
|
|
55
|
+
*/
|
|
56
|
+
tokensTable?: string;
|
|
57
|
+
/**
|
|
58
|
+
* PBKDF2 hash algorithm ('PBKDF2-SHA256' or 'PBKDF2-SHA512'). Default: 'PBKDF2-SHA256'
|
|
59
|
+
*/
|
|
60
|
+
algorithm?: 'PBKDF2-SHA256' | 'PBKDF2-SHA512' | string;
|
|
61
|
+
/**
|
|
62
|
+
* PBKDF2 hash iterations. Default: 1,000 (optimized for client-side/mobile performance)
|
|
63
|
+
*/
|
|
64
|
+
iterations?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Salt length in bytes. Default: 16 (128 bits)
|
|
67
|
+
*/
|
|
68
|
+
saltBytes?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Maximum failed login attempts before locking account. Set to 0 to disable. Default: 5
|
|
71
|
+
*/
|
|
72
|
+
maxFailedAttempts?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Account lockout duration in ms. Default: 15 minutes (900,000 ms)
|
|
75
|
+
*/
|
|
76
|
+
lockoutDurationMs?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Password reset token validity duration in ms. Default: 1 hour (3,600,000 ms)
|
|
79
|
+
*/
|
|
80
|
+
resetTokenExpiryMs?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Minimum password length requirement. Default: 8
|
|
83
|
+
*/
|
|
84
|
+
minPasswordLength?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Custom password validator function. Return string error or false to reject.
|
|
87
|
+
*/
|
|
88
|
+
validatePassword?: (password: string) => boolean | string;
|
|
89
|
+
/**
|
|
90
|
+
* Shared SessionManager instance or options to configure internal SessionManager.
|
|
91
|
+
*/
|
|
92
|
+
session?: SessionManager | SessionManagerOptions;
|
|
93
|
+
}
|
|
94
|
+
export interface SignUpOptions<TMetadata = Record<string, any>> {
|
|
95
|
+
id?: string;
|
|
96
|
+
email: string;
|
|
97
|
+
password: string;
|
|
98
|
+
username?: string | null;
|
|
99
|
+
displayName?: string | null;
|
|
100
|
+
role?: string;
|
|
101
|
+
metadata?: TMetadata;
|
|
102
|
+
emailVerified?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Whether to activate an offline session immediately upon registration. Default: true
|
|
105
|
+
*/
|
|
106
|
+
setActiveSession?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Session offline duration in ms.
|
|
109
|
+
*/
|
|
110
|
+
offlineDurationMs?: number;
|
|
111
|
+
}
|
|
112
|
+
export interface SignInOptions {
|
|
113
|
+
/** Email or username */
|
|
114
|
+
identifier: string;
|
|
115
|
+
password: string;
|
|
116
|
+
/** Whether to create and activate a session in SessionManager. Default: true */
|
|
117
|
+
setActiveSession?: boolean;
|
|
118
|
+
/** Session offline duration in ms. Default: 30 days */
|
|
119
|
+
offlineDurationMs?: number;
|
|
120
|
+
}
|
|
121
|
+
export interface SignInResult<TMetadata = Record<string, any>> {
|
|
122
|
+
user: LocalUser<TMetadata>;
|
|
123
|
+
session?: SessionRecord<LocalUser<TMetadata>> | null;
|
|
124
|
+
}
|
|
125
|
+
export interface ChangePasswordOptions {
|
|
126
|
+
userId: string;
|
|
127
|
+
oldPassword: string;
|
|
128
|
+
newPassword: string;
|
|
129
|
+
}
|
|
130
|
+
export interface UpdateUserOptions<TMetadata = Record<string, any>> {
|
|
131
|
+
email?: string;
|
|
132
|
+
username?: string | null;
|
|
133
|
+
displayName?: string | null;
|
|
134
|
+
role?: string;
|
|
135
|
+
metadata?: TMetadata | null;
|
|
136
|
+
status?: UserStatus;
|
|
137
|
+
emailVerified?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface CreateResetTokenResult {
|
|
140
|
+
token: string;
|
|
141
|
+
expiresAt: number;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Generates cryptographically secure random bytes across Web, Expo/React Native, and Node.js.
|
|
145
|
+
*/
|
|
146
|
+
export declare function getCryptoRandomBytes(length: number): Uint8Array;
|
|
147
|
+
/**
|
|
148
|
+
* Derives PBKDF2 keys using hardware-accelerated WebCrypto if available,
|
|
149
|
+
* fast 32-bit integer unboxed pure-JS for mobile performance (<=2000 iters),
|
|
150
|
+
* or non-blocking asynchronous pure-JS PBKDF2.
|
|
151
|
+
*/
|
|
152
|
+
export declare function derivePbkdf2Key(password: string, salt: Uint8Array, iterations: number, algorithm?: string): Promise<Uint8Array>;
|
|
153
|
+
/**
|
|
154
|
+
* Hashes a plaintext password using PBKDF2 with a cryptographically secure random salt.
|
|
155
|
+
*/
|
|
156
|
+
export declare function hashPassword(password: string, options?: {
|
|
157
|
+
saltBytes?: number;
|
|
158
|
+
iterations?: number;
|
|
159
|
+
algorithm?: string;
|
|
160
|
+
}): Promise<{
|
|
161
|
+
hash: string;
|
|
162
|
+
salt: string;
|
|
163
|
+
iterations: number;
|
|
164
|
+
algorithm: string;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Verifies a plaintext password against a stored PBKDF2 hash using constant-time comparison.
|
|
168
|
+
*/
|
|
169
|
+
export declare function verifyPassword(password: string, expectedHashHex: string, saltHex: string, iterations: number, algorithm?: string): Promise<boolean>;
|
|
170
|
+
/**
|
|
171
|
+
* Generates an opaque random token and its corresponding SHA-256 hash.
|
|
172
|
+
*/
|
|
173
|
+
export declare function generateCryptoToken(lengthBytes?: number): {
|
|
174
|
+
token: string;
|
|
175
|
+
hash: string;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Converts a raw database row into a sanitized user object without secret credentials.
|
|
179
|
+
*/
|
|
180
|
+
export declare function mapStoredUserRow<TMetadata = any>(row: any): LocalUser<TMetadata>;
|
|
181
|
+
/**
|
|
182
|
+
* Fully local, zero-backend authentication engine for SQLite.
|
|
183
|
+
* Manages users, PBKDF2-SHA512 crypto credentials, offline sessions, account lockout, and tokens.
|
|
184
|
+
*/
|
|
185
|
+
export declare class LocalAuthEngine {
|
|
186
|
+
private db;
|
|
187
|
+
private events?;
|
|
188
|
+
private usersTable;
|
|
189
|
+
private tokensTable;
|
|
190
|
+
private sqlUsersTable;
|
|
191
|
+
private sqlTokensTable;
|
|
192
|
+
private algorithm;
|
|
193
|
+
private iterations;
|
|
194
|
+
private saltBytes;
|
|
195
|
+
private maxFailedAttempts;
|
|
196
|
+
private lockoutDurationMs;
|
|
197
|
+
private resetTokenExpiryMs;
|
|
198
|
+
private minPasswordLength;
|
|
199
|
+
private customPasswordValidator?;
|
|
200
|
+
private sessionManager;
|
|
201
|
+
constructor(db: DBExecutable, sessionOrManager?: SessionManager | SessionManagerOptions, events?: EventEmitter | undefined, options?: LocalAuthEngineOptions);
|
|
202
|
+
/**
|
|
203
|
+
* Retrieves the underlying SessionManager instance.
|
|
204
|
+
*/
|
|
205
|
+
getSessionManager(): SessionManager;
|
|
206
|
+
/**
|
|
207
|
+
* Initializes SQLite tables and indexes for users and tokens.
|
|
208
|
+
*/
|
|
209
|
+
initialize(): Promise<void>;
|
|
210
|
+
/**
|
|
211
|
+
* Registers a new user with high-level crypto credentials.
|
|
212
|
+
*/
|
|
213
|
+
signUp<TMetadata = any>(options: SignUpOptions<TMetadata>): Promise<SignInResult<TMetadata>>;
|
|
214
|
+
/**
|
|
215
|
+
* Authenticates a user by email or username using constant-time PBKDF2 comparison.
|
|
216
|
+
* Handles brute-force protection, account locking, and session initialization.
|
|
217
|
+
*/
|
|
218
|
+
signIn<TMetadata = any>(options: SignInOptions): Promise<SignInResult<TMetadata>>;
|
|
219
|
+
/**
|
|
220
|
+
* Signs out the active user and clears the local session.
|
|
221
|
+
*/
|
|
222
|
+
signOut(): Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* Subscribes to authentication state changes (sign in, sign out, user updates).
|
|
225
|
+
*/
|
|
226
|
+
onAuthStateChange(listener: (user: LocalUser<any> | null) => void): () => void;
|
|
227
|
+
/**
|
|
228
|
+
* Retrieves the currently authenticated local user based on the active session.
|
|
229
|
+
*/
|
|
230
|
+
getCurrentUser<TMetadata = any>(): Promise<LocalUser<TMetadata> | null>;
|
|
231
|
+
/**
|
|
232
|
+
* Returns whether a valid user session is currently active.
|
|
233
|
+
*/
|
|
234
|
+
isAuthenticated(): Promise<boolean>;
|
|
235
|
+
/**
|
|
236
|
+
* Finds a user by unique ID.
|
|
237
|
+
*/
|
|
238
|
+
getUserById<TMetadata = any>(id: string): Promise<LocalUser<TMetadata> | null>;
|
|
239
|
+
/**
|
|
240
|
+
* Finds a user by email address (case-insensitive).
|
|
241
|
+
*/
|
|
242
|
+
getUserByEmail<TMetadata = any>(email: string): Promise<LocalUser<TMetadata> | null>;
|
|
243
|
+
/**
|
|
244
|
+
* Finds a user by username (case-insensitive).
|
|
245
|
+
*/
|
|
246
|
+
getUserByUsername<TMetadata = any>(username: string): Promise<LocalUser<TMetadata> | null>;
|
|
247
|
+
/**
|
|
248
|
+
* Changes a user's password after verifying their existing password.
|
|
249
|
+
*/
|
|
250
|
+
changePassword(options: ChangePasswordOptions): Promise<void>;
|
|
251
|
+
/**
|
|
252
|
+
* Generates a cryptographically secure, single-use password reset token with expiration.
|
|
253
|
+
*/
|
|
254
|
+
createPasswordResetToken(emailOrUsername: string): Promise<CreateResetTokenResult>;
|
|
255
|
+
/**
|
|
256
|
+
* Resets a user's password using a valid cryptographic reset token.
|
|
257
|
+
*/
|
|
258
|
+
resetPasswordWithToken(token: string, newPassword: string): Promise<void>;
|
|
259
|
+
/**
|
|
260
|
+
* Updates an existing user's profile, role, or metadata.
|
|
261
|
+
*/
|
|
262
|
+
updateUser<TMetadata = any>(id: string, updates: UpdateUserOptions<TMetadata>): Promise<LocalUser<TMetadata>>;
|
|
263
|
+
/**
|
|
264
|
+
* Permanently deletes a user, their associated tokens, and clears any active session.
|
|
265
|
+
*/
|
|
266
|
+
deleteUser(id: string): Promise<void>;
|
|
267
|
+
/**
|
|
268
|
+
* Manually locks a user account.
|
|
269
|
+
*/
|
|
270
|
+
lockAccount(userId: string, durationMs?: number): Promise<void>;
|
|
271
|
+
/**
|
|
272
|
+
* Manually unlocks a user account and clears failed login attempts.
|
|
273
|
+
*/
|
|
274
|
+
unlockAccount(userId: string): Promise<void>;
|
|
275
|
+
/**
|
|
276
|
+
* Lists local users with optional role, status filtering, and pagination.
|
|
277
|
+
*/
|
|
278
|
+
listUsers<TMetadata = any>(options?: {
|
|
279
|
+
limit?: number;
|
|
280
|
+
offset?: number;
|
|
281
|
+
status?: UserStatus;
|
|
282
|
+
role?: string;
|
|
283
|
+
}): Promise<LocalUser<TMetadata>[]>;
|
|
284
|
+
private assertValidPassword;
|
|
285
|
+
}
|