@supabase/auth-js 2.108.3-canary.1 → 2.109.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/auth-js",
3
- "version": "2.108.3-canary.1",
3
+ "version": "2.109.0",
4
4
  "private": false,
5
5
  "description": "Official SDK for Supabase Auth",
6
6
  "keywords": [
package/src/lib/types.ts CHANGED
@@ -2250,6 +2250,14 @@ export type CustomOAuthProvider = {
2250
2250
  acceptable_client_ids?: string[]
2251
2251
  /** OAuth scopes requested during authorization */
2252
2252
  scopes?: string[]
2253
+ /**
2254
+ * Allowlist of raw identity provider claim keys to copy verbatim into the
2255
+ * user's `custom_claims` field (within `identity_data` and
2256
+ * `raw_user_meta_data`), e.g. `["groups", "org_id", "mail"]`. This is an
2257
+ * opt-in allowlist that defaults to empty (no claims captured) and operates
2258
+ * independently from `attribute_mapping`.
2259
+ */
2260
+ custom_claims_allowlist?: string[]
2253
2261
  /** Whether PKCE is enabled */
2254
2262
  pkce_enabled?: boolean
2255
2263
  /** Mapping of provider attributes to Supabase user attributes */
@@ -2300,6 +2308,14 @@ export type CreateCustomProviderParams = {
2300
2308
  acceptable_client_ids?: string[]
2301
2309
  /** OAuth scopes requested during authorization */
2302
2310
  scopes?: string[]
2311
+ /**
2312
+ * Allowlist of raw identity provider claim keys to copy verbatim into the
2313
+ * user's `custom_claims` field (within `identity_data` and
2314
+ * `raw_user_meta_data`), e.g. `["groups", "org_id", "mail"]`. This is an
2315
+ * opt-in allowlist that defaults to empty (no claims captured) and operates
2316
+ * independently from `attribute_mapping`.
2317
+ */
2318
+ custom_claims_allowlist?: string[]
2303
2319
  /** Whether PKCE is enabled */
2304
2320
  pkce_enabled?: boolean
2305
2321
  /** Mapping of provider attributes to Supabase user attributes */
@@ -2342,6 +2358,14 @@ export type UpdateCustomProviderParams = {
2342
2358
  acceptable_client_ids?: string[]
2343
2359
  /** OAuth scopes requested during authorization */
2344
2360
  scopes?: string[]
2361
+ /**
2362
+ * Allowlist of raw identity provider claim keys to copy verbatim into the
2363
+ * user's `custom_claims` field (within `identity_data` and
2364
+ * `raw_user_meta_data`), e.g. `["groups", "org_id", "mail"]`. This is an
2365
+ * opt-in allowlist that defaults to empty (no claims captured) and operates
2366
+ * independently from `attribute_mapping`.
2367
+ */
2368
+ custom_claims_allowlist?: string[]
2345
2369
  /** Whether PKCE is enabled */
2346
2370
  pkce_enabled?: boolean
2347
2371
  /** Mapping of provider attributes to Supabase user attributes */
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.108.3-canary.1'
7
+ export const version = '2.109.0'