@supacloud/js 0.20.0 → 0.20.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/dist/index.d.ts +2 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -280,6 +280,7 @@ export type SupaCloudOAuthServerStatus = {
|
|
|
280
280
|
enabled: boolean;
|
|
281
281
|
allow_dynamic_registration: boolean;
|
|
282
282
|
issuer: string;
|
|
283
|
+
authorization_path?: string;
|
|
283
284
|
discovery_url: string;
|
|
284
285
|
oauth_authorization_server_metadata_url?: string;
|
|
285
286
|
jwks_url: string;
|
|
@@ -413,6 +414,7 @@ declare class SupaCloudOAuthServerClient<TClient extends SupabaseClient = Supaba
|
|
|
413
414
|
getStatus(): Promise<SupaCloudOAuthServerStatus>;
|
|
414
415
|
migrateToOidc(options?: {
|
|
415
416
|
allowDynamicRegistration?: boolean;
|
|
417
|
+
authorizationPath?: string;
|
|
416
418
|
}): Promise<SupaCloudOAuthServerStatus>;
|
|
417
419
|
getDiscovery(): Promise<Record<string, unknown>>;
|
|
418
420
|
getJwks(): Promise<Record<string, unknown>>;
|
package/dist/index.js
CHANGED
|
@@ -626,7 +626,10 @@ class SupaCloudOAuthServerClient extends SupaCloudManagementClient {
|
|
|
626
626
|
return this.request(`/v1/projects/${this.options.projectRef}/auth/oauth-server`, "GET");
|
|
627
627
|
}
|
|
628
628
|
async migrateToOidc(options = {}) {
|
|
629
|
-
return this.request(`/v1/projects/${this.options.projectRef}/auth/oauth-server/migrate`, "POST", {
|
|
629
|
+
return this.request(`/v1/projects/${this.options.projectRef}/auth/oauth-server/migrate`, "POST", {
|
|
630
|
+
allow_dynamic_registration: options.allowDynamicRegistration === true,
|
|
631
|
+
...options.authorizationPath === undefined ? {} : { authorization_path: options.authorizationPath }
|
|
632
|
+
});
|
|
630
633
|
}
|
|
631
634
|
async getDiscovery() {
|
|
632
635
|
const status = await this.getStatus();
|