@supacloud/js 0.19.5 → 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 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", { allow_dynamic_registration: options.allowDynamicRegistration === true });
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/js",
3
- "version": "0.19.5",
3
+ "version": "0.20.1",
4
4
  "description": "Platform SDK for SupaCloud, built on top of supabase-js",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",