@jskit-ai/agent-docs 0.1.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/DISTR_AGENT.md +25 -0
- package/guide/agent/app-extras/assistant.md +636 -0
- package/guide/agent/app-extras/realtime.md +223 -0
- package/guide/agent/app-setup/a-more-interesting-shell.md +643 -0
- package/guide/agent/app-setup/authentication.md +948 -0
- package/guide/agent/app-setup/console.md +316 -0
- package/guide/agent/app-setup/database-layer.md +775 -0
- package/guide/agent/app-setup/initial-scaffolding.md +714 -0
- package/guide/agent/app-setup/multi-homing.md +655 -0
- package/guide/agent/app-setup/users.md +355 -0
- package/guide/agent/app-setup/working-with-the-jskit-cli.md +983 -0
- package/guide/agent/generators/advanced-cruds.md +923 -0
- package/guide/agent/generators/crud-generators.md +556 -0
- package/guide/agent/generators/intro.md +63 -0
- package/guide/agent/generators/ui-generators.md +648 -0
- package/guide/agent/index.md +39 -0
- package/guide/human/app-extras/assistant.md +695 -0
- package/guide/human/app-extras/realtime.md +270 -0
- package/guide/human/app-setup/a-more-interesting-shell.md +734 -0
- package/guide/human/app-setup/authentication.md +963 -0
- package/guide/human/app-setup/console.md +352 -0
- package/guide/human/app-setup/database-layer.md +822 -0
- package/guide/human/app-setup/initial-scaffolding.md +738 -0
- package/guide/human/app-setup/multi-homing.md +795 -0
- package/guide/human/app-setup/users.md +404 -0
- package/guide/human/app-setup/working-with-the-jskit-cli.md +997 -0
- package/guide/human/generators/advanced-cruds.md +923 -0
- package/guide/human/generators/crud-generators.md +556 -0
- package/guide/human/generators/intro.md +109 -0
- package/guide/human/generators/ui-generators.md +665 -0
- package/guide/human/index.md +39 -0
- package/package.json +28 -0
- package/reference/autogen/KERNEL_MAP.md +536 -0
- package/reference/autogen/README.md +44 -0
- package/reference/autogen/packages/agent-docs.md +13 -0
- package/reference/autogen/packages/assistant-core.md +310 -0
- package/reference/autogen/packages/assistant-runtime.md +219 -0
- package/reference/autogen/packages/assistant.md +73 -0
- package/reference/autogen/packages/auth-core.md +352 -0
- package/reference/autogen/packages/auth-provider-supabase-core.md +223 -0
- package/reference/autogen/packages/auth-web.md +267 -0
- package/reference/autogen/packages/console-core.md +116 -0
- package/reference/autogen/packages/console-web.md +37 -0
- package/reference/autogen/packages/crud-core.md +283 -0
- package/reference/autogen/packages/crud-server-generator.md +220 -0
- package/reference/autogen/packages/crud-ui-generator.md +154 -0
- package/reference/autogen/packages/database-runtime-mysql.md +61 -0
- package/reference/autogen/packages/database-runtime-postgres.md +39 -0
- package/reference/autogen/packages/database-runtime.md +216 -0
- package/reference/autogen/packages/http-runtime.md +213 -0
- package/reference/autogen/packages/kernel.md +1350 -0
- package/reference/autogen/packages/realtime.md +95 -0
- package/reference/autogen/packages/shell-web.md +349 -0
- package/reference/autogen/packages/storage-runtime.md +39 -0
- package/reference/autogen/packages/ui-generator.md +101 -0
- package/reference/autogen/packages/uploads-image-web.md +76 -0
- package/reference/autogen/packages/uploads-runtime.md +85 -0
- package/reference/autogen/packages/users-core.md +307 -0
- package/reference/autogen/packages/users-web.md +473 -0
- package/reference/autogen/packages/workspaces-core.md +415 -0
- package/reference/autogen/packages/workspaces-web.md +372 -0
- package/reference/autogen/tooling/config-eslint.md +52 -0
- package/reference/autogen/tooling/create-app.md +194 -0
- package/reference/autogen/tooling/jskit-catalog.md +27 -0
- package/reference/autogen/tooling/jskit-cli.md +624 -0
- package/reference/autogen/tooling/test-support.md +27 -0
- package/reference/autogen/tooling/testUtils.md +31 -0
- package/templates/APP_BLUEPRINT.md +57 -0
- package/workflow/app-state.md +33 -0
- package/workflow/bootstrap.md +24 -0
- package/workflow/feature-delivery.md +21 -0
- package/workflow/review.md +22 -0
- package/workflow/scoping.md +26 -0
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
# packages/auth-core
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/auth-core`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/auth-core/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/client/authApi.js`
|
|
18
|
+
Exports
|
|
19
|
+
- `createApi`
|
|
20
|
+
|
|
21
|
+
### `src/client/index.js`
|
|
22
|
+
Exports
|
|
23
|
+
- `AccessCoreClientProvider`
|
|
24
|
+
- `FastifyAuthPolicyClientProvider`
|
|
25
|
+
|
|
26
|
+
### `src/client/providers/AccessCoreClientProvider.js`
|
|
27
|
+
Exports
|
|
28
|
+
- `AccessCoreClientProvider`
|
|
29
|
+
|
|
30
|
+
### `src/client/providers/FastifyAuthPolicyClientProvider.js`
|
|
31
|
+
Exports
|
|
32
|
+
- `FastifyAuthPolicyClientProvider`
|
|
33
|
+
|
|
34
|
+
### `src/client/signOutFlow.js`
|
|
35
|
+
Exports
|
|
36
|
+
- `runAuthSignOutFlow`
|
|
37
|
+
|
|
38
|
+
### `src/server/inviteTokens.js`
|
|
39
|
+
Exports
|
|
40
|
+
- `OPAQUE_INVITE_TOKEN_HASH_PREFIX`
|
|
41
|
+
- `normalizeInviteToken`
|
|
42
|
+
- `isSha256Hex`
|
|
43
|
+
- `buildInviteToken()`
|
|
44
|
+
- `hashInviteToken(token)`
|
|
45
|
+
- `encodeInviteTokenHash`
|
|
46
|
+
- `decodeInviteTokenHash`
|
|
47
|
+
- `resolveInviteTokenHash(inviteToken)`
|
|
48
|
+
|
|
49
|
+
### `src/server/lib/actionContextContributor.js`
|
|
50
|
+
Exports
|
|
51
|
+
- `createAuthActionContextContributor()`
|
|
52
|
+
|
|
53
|
+
### `src/server/lib/authPolicySupport.js`
|
|
54
|
+
Exports
|
|
55
|
+
- `assertAuthPolicyDeps(deps = {})`
|
|
56
|
+
- `normalizeActorResolution(result)`
|
|
57
|
+
Local functions
|
|
58
|
+
- `assertFunction(value, name)`
|
|
59
|
+
|
|
60
|
+
### `src/server/lib/errors.js`
|
|
61
|
+
Exports
|
|
62
|
+
- `AUTH_POLICY_DENY_REASONS`
|
|
63
|
+
- `createAuthPolicyError(status, message, { code = "AUTH_POLICY_ERROR" } = {})`
|
|
64
|
+
|
|
65
|
+
### `src/server/lib/index.js`
|
|
66
|
+
Exports
|
|
67
|
+
- `authPolicyPlugin`
|
|
68
|
+
- `withAuthPolicy`
|
|
69
|
+
- `mergeAuthPolicy`
|
|
70
|
+
|
|
71
|
+
### `src/server/lib/objectUtils.js`
|
|
72
|
+
Exports
|
|
73
|
+
- `asObject(value)`
|
|
74
|
+
|
|
75
|
+
### `src/server/lib/plugin.js`
|
|
76
|
+
Exports
|
|
77
|
+
- `authPolicyPlugin(deps = {}, options = {})`
|
|
78
|
+
Local functions
|
|
79
|
+
- `normalizeUnsafeMethods(methodsValue)`
|
|
80
|
+
- `normalizeApiPrefix(value)`
|
|
81
|
+
- `normalizeRateLimitPluginOptions(value)`
|
|
82
|
+
- `resolveRouteConfig(request)`
|
|
83
|
+
- `enforceCsrfProtection(fastify, request, reply)`
|
|
84
|
+
- `resolveCsrfToken(request)`
|
|
85
|
+
- `resolveOwnerValue(meta, request)`
|
|
86
|
+
- `notifyPolicyDenied(onPolicyDenied, payload)`
|
|
87
|
+
|
|
88
|
+
### `src/server/lib/routeMeta.js`
|
|
89
|
+
Exports
|
|
90
|
+
- `AUTH_POLICIES`
|
|
91
|
+
- `CONTEXT_POLICIES`
|
|
92
|
+
- `DEFAULT_AUTH_POLICY_META`
|
|
93
|
+
- `resolveAuthPolicyMeta(input = {})`
|
|
94
|
+
- `withAuthPolicy(meta = {})`
|
|
95
|
+
- `mergeAuthPolicy(routeOptions = {}, meta = {})`
|
|
96
|
+
|
|
97
|
+
### `src/server/lib/routeVisibilityResolver.js`
|
|
98
|
+
Exports
|
|
99
|
+
- `createAuthRouteVisibilityResolver()`
|
|
100
|
+
|
|
101
|
+
### `src/server/membershipAccess.js`
|
|
102
|
+
Exports
|
|
103
|
+
- `resolveMembershipRoleId(membershipLike)`
|
|
104
|
+
- `resolveMembershipStatus(membershipLike)`
|
|
105
|
+
- `normalizeMembershipForAccess(membershipLike)`
|
|
106
|
+
- `normalizePermissions(value)`
|
|
107
|
+
- `createMembershipIndexes(memberships)`
|
|
108
|
+
|
|
109
|
+
### `src/server/providers/AccessCoreServiceProvider.js`
|
|
110
|
+
Exports
|
|
111
|
+
- `AccessCoreServiceProvider`
|
|
112
|
+
|
|
113
|
+
### `src/server/providers/FastifyAuthPolicyServiceProvider.js`
|
|
114
|
+
Exports
|
|
115
|
+
- `FastifyAuthPolicyServiceProvider`
|
|
116
|
+
Local functions
|
|
117
|
+
- `parseBoolean(value, fallback = false)`
|
|
118
|
+
- `parseList(value)`
|
|
119
|
+
- `defaultHasPermission({ permission, permissions = [] } = {})`
|
|
120
|
+
|
|
121
|
+
### `src/server/utils.js`
|
|
122
|
+
Exports
|
|
123
|
+
- `normalizeEmail(value)`
|
|
124
|
+
- `normalizeOAuthIntent(value, { fallback = "login" } = {})`
|
|
125
|
+
- `normalizeReturnToPath(value, { fallback = "/", allowedOrigins = [] } = {})`
|
|
126
|
+
|
|
127
|
+
### `src/server/validators.js`
|
|
128
|
+
Exports
|
|
129
|
+
- `validators`
|
|
130
|
+
- `confirmPassword(rawPassword, rawConfirmPassword)`
|
|
131
|
+
- `forgotPasswordInput(payload = {})`
|
|
132
|
+
- `loginInput(payload = {})`
|
|
133
|
+
- `loginPassword(rawPassword)`
|
|
134
|
+
- `registerInput(payload = {})`
|
|
135
|
+
- `registerPassword(rawPassword)`
|
|
136
|
+
- `resetPassword(rawPassword)`
|
|
137
|
+
- `resetPasswordInput(payload = {})`
|
|
138
|
+
Local functions
|
|
139
|
+
- `validateEmail(rawEmail)`
|
|
140
|
+
- `buildFieldErrors(entries = [])`
|
|
141
|
+
- `buildEmailPasswordInput(payload = {}, { passwordValidator } = {})`
|
|
142
|
+
|
|
143
|
+
### `src/shared/authApi.js`
|
|
144
|
+
Exports
|
|
145
|
+
- `createApi({ request })`
|
|
146
|
+
|
|
147
|
+
### `src/shared/authConstraints.js`
|
|
148
|
+
Exports
|
|
149
|
+
- `AUTH_EMAIL_PATTERN`
|
|
150
|
+
- `AUTH_EMAIL_REGEX`
|
|
151
|
+
- `AUTH_EMAIL_MIN_LENGTH`
|
|
152
|
+
- `AUTH_EMAIL_MAX_LENGTH`
|
|
153
|
+
- `AUTH_PASSWORD_MIN_LENGTH`
|
|
154
|
+
- `AUTH_PASSWORD_MAX_LENGTH`
|
|
155
|
+
- `AUTH_LOGIN_PASSWORD_MAX_LENGTH`
|
|
156
|
+
- `AUTH_RECOVERY_TOKEN_MAX_LENGTH`
|
|
157
|
+
- `AUTH_ACCESS_TOKEN_MAX_LENGTH`
|
|
158
|
+
- `AUTH_REFRESH_TOKEN_MAX_LENGTH`
|
|
159
|
+
|
|
160
|
+
### `src/shared/authMethods.js`
|
|
161
|
+
Exports
|
|
162
|
+
- `AUTH_METHOD_PASSWORD_ID`
|
|
163
|
+
- `AUTH_METHOD_PASSWORD_PROVIDER`
|
|
164
|
+
- `AUTH_METHOD_EMAIL_OTP_ID`
|
|
165
|
+
- `AUTH_METHOD_EMAIL_OTP_PROVIDER`
|
|
166
|
+
- `AUTH_METHOD_KIND_PASSWORD`
|
|
167
|
+
- `AUTH_METHOD_KIND_OTP`
|
|
168
|
+
- `AUTH_METHOD_KIND_OAUTH`
|
|
169
|
+
- `AUTH_METHOD_KINDS`
|
|
170
|
+
- `AUTH_METHOD_MINIMUM_ENABLED`
|
|
171
|
+
- `AUTH_METHOD_DEFINITIONS`
|
|
172
|
+
- `AUTH_METHOD_IDS`
|
|
173
|
+
- `buildOAuthMethodId(providerId)`
|
|
174
|
+
- `parseAuthMethodId(value)`
|
|
175
|
+
- `buildOAuthMethodDefinitions(oauthProviders = [])`
|
|
176
|
+
- `buildAuthMethodDefinitions({ oauthProviders = [] } = {})`
|
|
177
|
+
- `buildAuthMethodIds(options = {})`
|
|
178
|
+
- `findAuthMethodDefinition(methodId, options = {})`
|
|
179
|
+
Local functions
|
|
180
|
+
- `normalizeOAuthMethodDefinitionInput(entry)`
|
|
181
|
+
|
|
182
|
+
### `src/shared/authPaths.js`
|
|
183
|
+
Exports
|
|
184
|
+
- `AUTH_PATHS`
|
|
185
|
+
- `buildAuthOauthStartPath(provider)`
|
|
186
|
+
|
|
187
|
+
### `src/shared/commands/authCommandValidators.js`
|
|
188
|
+
Exports
|
|
189
|
+
- `authEmailValidator`
|
|
190
|
+
- `authPasswordValidator`
|
|
191
|
+
- `authLoginPasswordValidator`
|
|
192
|
+
- `authRecoveryTokenValidator`
|
|
193
|
+
- `authAccessTokenValidator`
|
|
194
|
+
- `authRefreshTokenValidator`
|
|
195
|
+
- `oauthProviderValidator`
|
|
196
|
+
- `authMethodIdValidator`
|
|
197
|
+
- `authMethodKindValidator`
|
|
198
|
+
- `oauthReturnToValidator`
|
|
199
|
+
- `okResponseValidator`
|
|
200
|
+
- `okMessageResponseValidator`
|
|
201
|
+
- `registerResponseValidator`
|
|
202
|
+
- `loginResponseValidator`
|
|
203
|
+
- `otpVerifyResponseValidator`
|
|
204
|
+
- `oauthCompleteResponseValidator`
|
|
205
|
+
- `logoutResponseValidator`
|
|
206
|
+
- `oauthProviderCatalogEntryValidator`
|
|
207
|
+
- `sessionResponseValidator`
|
|
208
|
+
- `sessionUnavailableResponseValidator`
|
|
209
|
+
- `createCommandMessages({ fields = {}, defaultMessage = "Invalid value." } = {})`
|
|
210
|
+
|
|
211
|
+
### `src/shared/commands/authLoginOAuthCompleteCommand.js`
|
|
212
|
+
Exports
|
|
213
|
+
- `authLoginOAuthCompleteBodyValidator`
|
|
214
|
+
- `oauthCompleteResponseValidator`
|
|
215
|
+
- `AUTH_LOGIN_OAUTH_COMPLETE_MESSAGES`
|
|
216
|
+
- `authLoginOAuthCompleteCommand`
|
|
217
|
+
|
|
218
|
+
### `src/shared/commands/authLoginOAuthStartCommand.js`
|
|
219
|
+
Exports
|
|
220
|
+
- `authLoginOAuthStartParamsValidator`
|
|
221
|
+
- `authLoginOAuthStartQueryValidator`
|
|
222
|
+
- `authLoginOAuthStartResponseValidator`
|
|
223
|
+
- `AUTH_LOGIN_OAUTH_START_MESSAGES`
|
|
224
|
+
- `authLoginOAuthStartCommand`
|
|
225
|
+
|
|
226
|
+
### `src/shared/commands/authLoginOtpRequestCommand.js`
|
|
227
|
+
Exports
|
|
228
|
+
- `authLoginOtpRequestBodyValidator`
|
|
229
|
+
- `okMessageResponseValidator`
|
|
230
|
+
- `AUTH_LOGIN_OTP_REQUEST_MESSAGES`
|
|
231
|
+
- `authLoginOtpRequestCommand`
|
|
232
|
+
|
|
233
|
+
### `src/shared/commands/authLoginOtpVerifyCommand.js`
|
|
234
|
+
Exports
|
|
235
|
+
- `authLoginOtpVerifyBodyValidator`
|
|
236
|
+
- `otpVerifyResponseValidator`
|
|
237
|
+
- `AUTH_LOGIN_OTP_VERIFY_MESSAGES`
|
|
238
|
+
- `authLoginOtpVerifyCommand`
|
|
239
|
+
|
|
240
|
+
### `src/shared/commands/authLoginPasswordCommand.js`
|
|
241
|
+
Exports
|
|
242
|
+
- `authLoginPasswordBodyValidator`
|
|
243
|
+
- `loginResponseValidator`
|
|
244
|
+
- `AUTH_LOGIN_PASSWORD_MESSAGES`
|
|
245
|
+
- `authLoginPasswordCommand`
|
|
246
|
+
|
|
247
|
+
### `src/shared/commands/authLogoutCommand.js`
|
|
248
|
+
Exports
|
|
249
|
+
- `logoutResponseValidator`
|
|
250
|
+
- `AUTH_LOGOUT_MESSAGES`
|
|
251
|
+
- `authLogoutCommand`
|
|
252
|
+
|
|
253
|
+
### `src/shared/commands/authPasswordRecoveryCompleteCommand.js`
|
|
254
|
+
Exports
|
|
255
|
+
- `authPasswordRecoveryCompleteBodyValidator`
|
|
256
|
+
- `okResponseValidator`
|
|
257
|
+
- `AUTH_PASSWORD_RECOVERY_COMPLETE_MESSAGES`
|
|
258
|
+
- `authPasswordRecoveryCompleteCommand`
|
|
259
|
+
|
|
260
|
+
### `src/shared/commands/authPasswordResetCommand.js`
|
|
261
|
+
Exports
|
|
262
|
+
- `authPasswordResetBodyValidator`
|
|
263
|
+
- `okMessageResponseValidator`
|
|
264
|
+
- `AUTH_PASSWORD_RESET_MESSAGES`
|
|
265
|
+
- `authPasswordResetCommand`
|
|
266
|
+
|
|
267
|
+
### `src/shared/commands/authPasswordResetRequestCommand.js`
|
|
268
|
+
Exports
|
|
269
|
+
- `authPasswordResetRequestBodyValidator`
|
|
270
|
+
- `okMessageResponseValidator`
|
|
271
|
+
- `AUTH_PASSWORD_RESET_REQUEST_MESSAGES`
|
|
272
|
+
- `authPasswordResetRequestCommand`
|
|
273
|
+
|
|
274
|
+
### `src/shared/commands/authRegisterCommand.js`
|
|
275
|
+
Exports
|
|
276
|
+
- `authRegisterBodyValidator`
|
|
277
|
+
- `registerResponseValidator`
|
|
278
|
+
- `AUTH_REGISTER_MESSAGES`
|
|
279
|
+
- `authRegisterCommand`
|
|
280
|
+
|
|
281
|
+
### `src/shared/commands/authRegisterConfirmationResendCommand.js`
|
|
282
|
+
Exports
|
|
283
|
+
- `authRegisterConfirmationResendBodyValidator`
|
|
284
|
+
- `AUTH_REGISTER_CONFIRMATION_RESEND_MESSAGES`
|
|
285
|
+
- `authRegisterConfirmationResendCommand`
|
|
286
|
+
|
|
287
|
+
### `src/shared/commands/authSessionReadCommand.js`
|
|
288
|
+
Exports
|
|
289
|
+
- `sessionResponseValidator`
|
|
290
|
+
- `sessionUnavailableResponseValidator`
|
|
291
|
+
- `AUTH_SESSION_READ_MESSAGES`
|
|
292
|
+
- `authSessionReadCommand`
|
|
293
|
+
|
|
294
|
+
### `src/shared/commands/index.js`
|
|
295
|
+
Exports
|
|
296
|
+
- `authRegisterCommand`
|
|
297
|
+
- `authRegisterConfirmationResendCommand`
|
|
298
|
+
- `authLoginPasswordCommand`
|
|
299
|
+
- `authLoginOtpRequestCommand`
|
|
300
|
+
- `authLoginOtpVerifyCommand`
|
|
301
|
+
- `authLoginOAuthStartCommand`
|
|
302
|
+
- `authLoginOAuthCompleteCommand`
|
|
303
|
+
- `authPasswordResetRequestCommand`
|
|
304
|
+
- `authPasswordRecoveryCompleteCommand`
|
|
305
|
+
- `authPasswordResetCommand`
|
|
306
|
+
- `authLogoutCommand`
|
|
307
|
+
- `authSessionReadCommand`
|
|
308
|
+
|
|
309
|
+
### `src/shared/index.js`
|
|
310
|
+
Exports
|
|
311
|
+
- `createApi`
|
|
312
|
+
- `runAuthSignOutFlow`
|
|
313
|
+
- `AUTH_PATHS`
|
|
314
|
+
- `buildAuthOauthStartPath`
|
|
315
|
+
|
|
316
|
+
### `src/shared/inputNormalization.js`
|
|
317
|
+
Exports
|
|
318
|
+
- `normalizeObjectInput`
|
|
319
|
+
|
|
320
|
+
### `src/shared/inviteTokens.js`
|
|
321
|
+
Exports
|
|
322
|
+
- `OPAQUE_INVITE_TOKEN_HASH_PREFIX`
|
|
323
|
+
- `normalizeInviteToken(token)`
|
|
324
|
+
- `isSha256Hex(value)`
|
|
325
|
+
- `encodeInviteTokenHash(tokenHash)`
|
|
326
|
+
- `decodeInviteTokenHash(inviteToken)`
|
|
327
|
+
|
|
328
|
+
### `src/shared/oauthCallbackParams.js`
|
|
329
|
+
Exports
|
|
330
|
+
- `OAUTH_QUERY_PARAM_PROVIDER`
|
|
331
|
+
- `OAUTH_QUERY_PARAM_INTENT`
|
|
332
|
+
- `OAUTH_QUERY_PARAM_RETURN_TO`
|
|
333
|
+
|
|
334
|
+
### `src/shared/oauthProviders.js`
|
|
335
|
+
Exports
|
|
336
|
+
- `OAUTH_PROVIDER_ID_PATTERN`
|
|
337
|
+
- `OAUTH_PROVIDER_ID_REGEX`
|
|
338
|
+
- `normalizeOAuthProviderId(value, { fallback = null } = {})`
|
|
339
|
+
- `isValidOAuthProviderId(value)`
|
|
340
|
+
- `normalizeOAuthProviderList(value, { fallback = [] } = {})`
|
|
341
|
+
|
|
342
|
+
### `src/shared/signOutFlow.js`
|
|
343
|
+
Exports
|
|
344
|
+
- `runAuthSignOutFlow({ authApi, clearCsrfTokenCache = null, afterSignOut = null } = {})`
|
|
345
|
+
Local functions
|
|
346
|
+
- `normalizeAuthApi(authApi)`
|
|
347
|
+
|
|
348
|
+
### root
|
|
349
|
+
|
|
350
|
+
### `package.descriptor.mjs`
|
|
351
|
+
Exports
|
|
352
|
+
- None
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# packages/auth-provider-supabase-core
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/auth-provider-supabase-core`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/auth-provider-supabase-core/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/client/index.js`
|
|
18
|
+
Exports
|
|
19
|
+
- None
|
|
20
|
+
|
|
21
|
+
### `src/server/lib/accountFlows.js`
|
|
22
|
+
Exports
|
|
23
|
+
- `createAccountFlows(deps)`
|
|
24
|
+
Local functions
|
|
25
|
+
- `normalizeLocalReturnToPath(value, { fallback = "" } = {})`
|
|
26
|
+
|
|
27
|
+
### `src/server/lib/actions/auth.contributor.js`
|
|
28
|
+
Exports
|
|
29
|
+
- `authActions`
|
|
30
|
+
Local functions
|
|
31
|
+
- `requireRequestContext(context, actionId)`
|
|
32
|
+
|
|
33
|
+
### `src/server/lib/authCookies.js`
|
|
34
|
+
Exports
|
|
35
|
+
- `safeRequestCookies(request)`
|
|
36
|
+
- `cookieOptions(isProduction, maxAge)`
|
|
37
|
+
|
|
38
|
+
### `src/server/lib/authErrorMappers.js`
|
|
39
|
+
Exports
|
|
40
|
+
- `isTransientAuthMessage(message)`
|
|
41
|
+
- `isTransientSupabaseError(error)`
|
|
42
|
+
- `sanitizeAuthMessage(message, fallback = "Authentication request could not be processed.")`
|
|
43
|
+
- `mapAuthError(error, fallbackStatus)`
|
|
44
|
+
- `validationError`
|
|
45
|
+
- `isUserNotFoundLikeAuthError(error)`
|
|
46
|
+
- `mapRecoveryError(error)`
|
|
47
|
+
- `mapPasswordUpdateError(error)`
|
|
48
|
+
- `mapOtpVerifyError(error)`
|
|
49
|
+
- `mapProfileUpdateError(error)`
|
|
50
|
+
- `mapCurrentPasswordError(error)`
|
|
51
|
+
|
|
52
|
+
### `src/server/lib/authInputParsers.js`
|
|
53
|
+
Exports
|
|
54
|
+
- `normalizeOAuthProviderInput(value, options = {})`
|
|
55
|
+
- `validatePasswordRecoveryPayload(payload)`
|
|
56
|
+
- `parseOAuthCompletePayload(payload = {}, options = {})`
|
|
57
|
+
- `parseOtpLoginVerifyPayload(payload = {})`
|
|
58
|
+
- `mapOAuthCallbackError(errorCode)`
|
|
59
|
+
Local functions
|
|
60
|
+
- `applySessionPairValidation(accessToken, refreshToken, fieldErrors)`
|
|
61
|
+
- `resolveConfiguredOAuthProviders(options = {})`
|
|
62
|
+
|
|
63
|
+
### `src/server/lib/authJwt.js`
|
|
64
|
+
Exports
|
|
65
|
+
- `loadJose()`
|
|
66
|
+
- `isExpiredJwtError(error)`
|
|
67
|
+
- `classifyJwtVerifyError(error)`
|
|
68
|
+
|
|
69
|
+
### `src/server/lib/authMethodStatus.js`
|
|
70
|
+
Exports
|
|
71
|
+
- `normalizeIdentityProviderId(value)`
|
|
72
|
+
- `collectProviderIdsFromSupabaseUser(user)`
|
|
73
|
+
- `buildAuthMethodsStatusFromProviderIds(providerIds, options = {})`
|
|
74
|
+
- `buildAuthMethodsStatusFromSupabaseUser(user, options = {})`
|
|
75
|
+
- `buildSecurityStatusFromAuthMethodsStatus(authMethodsStatus)`
|
|
76
|
+
- `findAuthMethodById(authMethodsStatus, methodId)`
|
|
77
|
+
- `findLinkedIdentityByProvider(user, provider)`
|
|
78
|
+
Local functions
|
|
79
|
+
- `normalizeProviderIdList(providerIds)`
|
|
80
|
+
- `countEnabledMethods(methods)`
|
|
81
|
+
- `countConfiguredIdentityMethods(methods)`
|
|
82
|
+
|
|
83
|
+
### `src/server/lib/authProfileNames.js`
|
|
84
|
+
Exports
|
|
85
|
+
- `displayNameFromEmail(email)`
|
|
86
|
+
- `resolveDisplayName(supabaseUser, fallbackEmail)`
|
|
87
|
+
- `resolveDisplayNameFromClaims(claims, fallbackEmail)`
|
|
88
|
+
|
|
89
|
+
### `src/server/lib/authRedirectUrls.js`
|
|
90
|
+
Exports
|
|
91
|
+
- `parseHttpUrl(rawValue, variableName)`
|
|
92
|
+
- `createAppBaseUrl(appPublicUrl)`
|
|
93
|
+
- `buildPasswordResetRedirectUrl(options)`
|
|
94
|
+
- `buildOtpLoginRedirectUrl(options)`
|
|
95
|
+
- `normalizeOAuthIntent`
|
|
96
|
+
- `normalizeReturnToPath`
|
|
97
|
+
- `buildOAuthRedirectUrl(options)`
|
|
98
|
+
- `buildOAuthLoginRedirectUrl(options)`
|
|
99
|
+
- `buildOAuthLinkRedirectUrl(options)`
|
|
100
|
+
|
|
101
|
+
### `src/server/lib/authSecrets.js`
|
|
102
|
+
Exports
|
|
103
|
+
- `buildDisabledPasswordSecret()`
|
|
104
|
+
|
|
105
|
+
### `src/server/lib/authSessionEventsService.js`
|
|
106
|
+
Exports
|
|
107
|
+
- `createAuthSessionEventsService()`
|
|
108
|
+
|
|
109
|
+
### `src/server/lib/flowGuards.js`
|
|
110
|
+
Exports
|
|
111
|
+
- `requireNoFieldErrors(parsed, validationError)`
|
|
112
|
+
- `requireAuthUserSession(response, mapError, status = 401)`
|
|
113
|
+
- `requireAuthUser(response, mapError, status = 400)`
|
|
114
|
+
- `requireAuthSession(response, mapError, status = 401)`
|
|
115
|
+
|
|
116
|
+
### `src/server/lib/index.js`
|
|
117
|
+
Exports
|
|
118
|
+
- `createService`
|
|
119
|
+
- `__testables`
|
|
120
|
+
- `authActions`
|
|
121
|
+
|
|
122
|
+
### `src/server/lib/oauthFlows.js`
|
|
123
|
+
Exports
|
|
124
|
+
- `createOauthFlows(deps)`
|
|
125
|
+
|
|
126
|
+
### `src/server/lib/oauthProviderCatalog.js`
|
|
127
|
+
Exports
|
|
128
|
+
- `SUPABASE_OAUTH_PROVIDER_METADATA`
|
|
129
|
+
- `DEFAULT_SUPABASE_OAUTH_PROVIDER_IDS`
|
|
130
|
+
- `resolveSupabaseOAuthProviderCatalog(options = {})`
|
|
131
|
+
- `normalizeOAuthProviderFromCatalog(value, { providerIds = [], fallback = null } = {})`
|
|
132
|
+
- `resolveOAuthProviderQueryParams(providerId, { providerQueryParamsById = {} } = {})`
|
|
133
|
+
- `buildOAuthProviderCatalogResponse(catalog)`
|
|
134
|
+
Local functions
|
|
135
|
+
- `normalizeProviderLabel(value, fallback)`
|
|
136
|
+
- `normalizeProviderQueryParams(value)`
|
|
137
|
+
- `normalizeProviderLabelOverrides(value)`
|
|
138
|
+
- `normalizeProviderQueryParamOverrides(value)`
|
|
139
|
+
- `normalizeExplicitProviderCatalogEntry(entry)`
|
|
140
|
+
- `normalizeExplicitProviderCatalog(value)`
|
|
141
|
+
|
|
142
|
+
### `src/server/lib/passwordSecurityFlows.js`
|
|
143
|
+
Exports
|
|
144
|
+
- `createPasswordSecurityFlows(deps)`
|
|
145
|
+
|
|
146
|
+
### `src/server/lib/service.js`
|
|
147
|
+
Exports
|
|
148
|
+
- `createService(options)`
|
|
149
|
+
- `__testables`
|
|
150
|
+
Local functions
|
|
151
|
+
- `normalizeAuthProviderId(value, { fallback = DEFAULT_AUTH_PROVIDER_ID } = {})`
|
|
152
|
+
- `normalizeProviderUserId(value)`
|
|
153
|
+
|
|
154
|
+
### `src/server/lib/standaloneProfileSyncService.js`
|
|
155
|
+
Exports
|
|
156
|
+
- `createStandaloneProfileSyncService()`
|
|
157
|
+
- `USER_PROFILE_EMAIL_CONFLICT_CODE`
|
|
158
|
+
Local functions
|
|
159
|
+
- `buildIdentityKey({ authProvider, authProviderUserSid } = {})`
|
|
160
|
+
- `normalizeIdentity(identityLike)`
|
|
161
|
+
- `normalizeProfile(profileLike)`
|
|
162
|
+
- `cloneProfile(profile)`
|
|
163
|
+
- `createEmailConflictError()`
|
|
164
|
+
|
|
165
|
+
### `src/server/lib/test-utils.js`
|
|
166
|
+
Exports
|
|
167
|
+
- `createAccountFlows`
|
|
168
|
+
- `createOauthFlows`
|
|
169
|
+
- `createPasswordSecurityFlows`
|
|
170
|
+
- `mapAuthError`
|
|
171
|
+
- `validationError`
|
|
172
|
+
- `isUserNotFoundLikeAuthError`
|
|
173
|
+
- `mapRecoveryError`
|
|
174
|
+
- `mapPasswordUpdateError`
|
|
175
|
+
- `mapOtpVerifyError`
|
|
176
|
+
- `mapProfileUpdateError`
|
|
177
|
+
- `mapCurrentPasswordError`
|
|
178
|
+
- `isTransientAuthMessage`
|
|
179
|
+
- `isTransientSupabaseError`
|
|
180
|
+
- `buildOtpLoginRedirectUrl`
|
|
181
|
+
- `normalizeOAuthIntent`
|
|
182
|
+
- `normalizeReturnToPath`
|
|
183
|
+
- `buildOAuthRedirectUrl`
|
|
184
|
+
- `buildOAuthLoginRedirectUrl`
|
|
185
|
+
- `buildOAuthLinkRedirectUrl`
|
|
186
|
+
- `normalizeOAuthProviderInput`
|
|
187
|
+
- `parseOAuthCompletePayload`
|
|
188
|
+
- `parseOtpLoginVerifyPayload`
|
|
189
|
+
- `mapOAuthCallbackError`
|
|
190
|
+
- `validatePasswordRecoveryPayload`
|
|
191
|
+
- `resolveSupabaseOAuthProviderCatalog`
|
|
192
|
+
- `resolveOAuthProviderQueryParams`
|
|
193
|
+
- `buildOAuthProviderCatalogResponse`
|
|
194
|
+
- `buildAuthMethodsStatusFromProviderIds`
|
|
195
|
+
- `collectProviderIdsFromSupabaseUser`
|
|
196
|
+
- `findAuthMethodById`
|
|
197
|
+
- `findLinkedIdentityByProvider`
|
|
198
|
+
- `buildSecurityStatusFromAuthMethodsStatus`
|
|
199
|
+
|
|
200
|
+
### `src/server/providers/AuthProviderServiceProvider.js`
|
|
201
|
+
Exports
|
|
202
|
+
- `AuthProviderServiceProvider`
|
|
203
|
+
|
|
204
|
+
### `src/server/providers/AuthSupabaseServiceProvider.js`
|
|
205
|
+
Exports
|
|
206
|
+
- `AuthSupabaseServiceProvider`
|
|
207
|
+
Local functions
|
|
208
|
+
- `splitCsv(value)`
|
|
209
|
+
- `normalizeRecord(value)`
|
|
210
|
+
- `normalizeOAuthProviderConfigList(value)`
|
|
211
|
+
- `resolveOAuthConfigFromAppConfig(appConfig)`
|
|
212
|
+
- `resolveAllowedReturnToOrigins({ appConfig = {}, appPublicUrl = "" } = {})`
|
|
213
|
+
- `resolveAuthProviderConfig(env, appConfig = {})`
|
|
214
|
+
- `resolveAuthProfileMode(env)`
|
|
215
|
+
- `createInMemoryUserSettingsRepository()`
|
|
216
|
+
- `resolveCommonDependencies(scope)`
|
|
217
|
+
- `resolveOptionalRepositories(scope)`
|
|
218
|
+
|
|
219
|
+
### root
|
|
220
|
+
|
|
221
|
+
### `package.descriptor.mjs`
|
|
222
|
+
Exports
|
|
223
|
+
- None
|