Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaftarmery committed Dec 19, 2024
2 parents 87c3a99 + aea0087 commit 72e3fc2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/old-dryers-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@clerk/types': minor
---

Adds `oidcLoginHint` & `oidcPrompt` parameters to following types:

- `ReauthorizeExternalAccountParams`
- `OAuthConfig`
- `SignInCreateParams`
- `PrepareVerificationParams`
- `SignUpCreateParams`
- `CreateExternalAccountParams`
2 changes: 2 additions & 0 deletions packages/types/src/externalAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import type { VerificationResource } from './verification';
export type ReauthorizeExternalAccountParams = {
additionalScopes?: OAuthScope[];
redirectUrl?: string;
oidcPrompt?: string;
oidcLoginHint?: string;
};

export interface ExternalAccountResource extends ClerkResource {
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/factors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export type PassKeyConfig = PasskeyFactor;
export type OAuthConfig = OauthFactor & {
redirectUrl: string;
actionCompleteRedirectUrl: string;
oidcPrompt?: string;
oidcLoginHint?: string;
};

export type SamlConfig = SamlFactor & {
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/signIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export type SignInCreateParams = (
redirectUrl: string;
actionCompleteRedirectUrl?: string;
identifier?: string;
oidcPrompt?: string;
oidcLoginHint?: string;
}
| {
strategy: TicketStrategy;
Expand Down
4 changes: 4 additions & 0 deletions packages/types/src/signUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export type PrepareVerificationParams =
strategy: OAuthStrategy;
redirectUrl?: string;
actionCompleteRedirectUrl?: string;
oidcPrompt?: string;
oidcLoginHint?: string;
}
| {
strategy: SamlStrategy;
Expand Down Expand Up @@ -171,6 +173,8 @@ export type SignUpCreateParams = Partial<
ticket: string;
token: string;
legalAccepted: boolean;
oidcPrompt: string;
oidcLoginHint: string;
} & Omit<SnakeToCamel<Record<SignUpAttributeField | SignUpVerifiableField, string>>, 'legalAccepted'>
>;

Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ export type CreateExternalAccountParams = {
strategy: OAuthStrategy;
redirectUrl?: string;
additionalScopes?: OAuthScope[];
oidcPrompt?: string;
oidcLoginHint?: string;
};
export type VerifyTOTPParams = { code: string };

Expand Down

0 comments on commit 72e3fc2

Please sign in to comment.