From 3e7b435e10b931219a8ab786d1ea7e59291b7258 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Thu, 4 Jul 2024 15:12:55 -0700 Subject: [PATCH 1/3] fix: add slack_oidc provider type --- src/lib/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/types.ts b/src/lib/types.ts index 708a5de9..681e23ad 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -18,6 +18,7 @@ export type Provider = | 'linkedin_oidc' | 'notion' | 'slack' + | 'slack_oidc' | 'spotify' | 'twitch' | 'twitter' From 7e3c2cca3249b68aeee14dfed01d30fa4773e051 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Thu, 4 Jul 2024 15:14:39 -0700 Subject: [PATCH 2/3] fix: add password_hash & id types to admin user attributes --- src/lib/types.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lib/types.ts b/src/lib/types.ts index 681e23ad..471fba91 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -438,6 +438,22 @@ export interface AdminUserAttributes extends Omit { * Setting this role to `service_role` is not recommended as it grants the user admin privileges. */ role?: string + + /** + * The `password_hash` for the user's password. + * + * Allows you to specify a password hash for the user. This is useful for migrating a user's password hash from another service. + * + * Supports bcryot and argon2 password hashes. + */ + password_hash?: string + + /** + * The `id` for the user. + * + * Allows you to overwrite the default `id` set for the user. + */ + id?: string } export interface Subscription { From c13174878ee3114f2542cc3a1d34c7f9dda974d6 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Fri, 12 Jul 2024 10:19:49 -0700 Subject: [PATCH 3/3] chore: update src/lib/types.ts Co-authored-by: Joel Lee --- src/lib/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/types.ts b/src/lib/types.ts index 471fba91..2129c01b 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -444,7 +444,7 @@ export interface AdminUserAttributes extends Omit { * * Allows you to specify a password hash for the user. This is useful for migrating a user's password hash from another service. * - * Supports bcryot and argon2 password hashes. + * Supports bcrypt and argon2 password hashes. */ password_hash?: string