Skip to content

Commit

Permalink
fix: update types (#930)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?
* Adds the `slack_oidc` provider, which supports the slack v2 API
* Adds 2 new fields to the admin create user method - `password_hash`
and `id`, which allows one to specify a password hash or a custom id
when creating a user through the admin method


## What is the current behavior?

Please link any relevant issues here.

## What is the new behavior?

Feel free to include screenshots if it includes visual changes.

## Additional context

Add any other context or screenshots.

---------

Co-authored-by: Joel Lee <[email protected]>
  • Loading branch information
kangmingtay and J0 authored Jul 12, 2024
1 parent a80f343 commit dbc5962
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type Provider =
| 'linkedin_oidc'
| 'notion'
| 'slack'
| 'slack_oidc'
| 'spotify'
| 'twitch'
| 'twitter'
Expand Down Expand Up @@ -437,6 +438,22 @@ export interface AdminUserAttributes extends Omit<UserAttributes, 'data'> {
* 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 bcrypt 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 {
Expand Down

0 comments on commit dbc5962

Please sign in to comment.