@supertokens-plugins/rownd-nodejs 0.3.0-beta.5 → 0.3.0-beta.7
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 +58 -2
- package/dist/bulkMigrate.js +3 -2
- package/dist/generateAppConfig.js +4 -1
- package/dist/index.d.mts +39 -4
- package/dist/index.d.ts +39 -4
- package/dist/index.js +476 -34
- package/dist/index.mjs +473 -33
- package/dist/setupCoreInstance.js +17 -2
- package/package.json +1 -1
|
@@ -214,7 +214,17 @@ async function provisionSuperTokensInfrastructure(config, oidcClients) {
|
|
|
214
214
|
"client_credentials",
|
|
215
215
|
"implicit"
|
|
216
216
|
],
|
|
217
|
-
tokenEndpointAuthMethod: "
|
|
217
|
+
tokenEndpointAuthMethod: oidcClient.config.token_endpoint_auth_method ?? "client_secret_basic",
|
|
218
|
+
audience: [`app:${config.rownd.appId}`],
|
|
219
|
+
metadata: {
|
|
220
|
+
rowndOidcClientId: oidcClient.id,
|
|
221
|
+
rowndAppVariantId: credential.app_variant_id || void 0,
|
|
222
|
+
rowndAllowedScopes: oidcClient.config.allowed_scopes || [],
|
|
223
|
+
rowndApplicationType: oidcClient.config.application_type,
|
|
224
|
+
rowndIsPkceRequired: oidcClient.config.is_pkce_required,
|
|
225
|
+
rowndIsPkceSupported: oidcClient.config.is_pkce_supported,
|
|
226
|
+
rowndDeviceFlowEnabled: oidcClient.config.device_flow_enabled
|
|
227
|
+
}
|
|
218
228
|
})
|
|
219
229
|
}
|
|
220
230
|
);
|
|
@@ -235,7 +245,12 @@ var RowndOidcClientSchema = import_zod2.z.object({
|
|
|
235
245
|
config: import_zod2.z.object({
|
|
236
246
|
redirect_uris: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
237
247
|
post_logout_uris: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
238
|
-
allowed_scopes: import_zod2.z.array(import_zod2.z.string()).optional()
|
|
248
|
+
allowed_scopes: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
249
|
+
token_endpoint_auth_method: import_zod2.z.enum(["client_secret_basic", "client_secret_post", "none"]).optional(),
|
|
250
|
+
application_type: import_zod2.z.enum(["web", "native"]).optional(),
|
|
251
|
+
is_pkce_required: import_zod2.z.boolean().optional(),
|
|
252
|
+
is_pkce_supported: import_zod2.z.boolean().optional(),
|
|
253
|
+
device_flow_enabled: import_zod2.z.boolean().optional()
|
|
239
254
|
}),
|
|
240
255
|
credentials: import_zod2.z.array(
|
|
241
256
|
import_zod2.z.object({
|