Skip to content

Commit c9da046

Browse files
authored
feat(types): Add oidcPrompt and oidcLoginHint (#4789)
1 parent 4e34a3a commit c9da046

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

.changeset/old-dryers-approve.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@clerk/types': minor
3+
---
4+
5+
Adds `oidcLoginHint` & `oidcPrompt` parameters to following types:
6+
7+
- `ReauthorizeExternalAccountParams`
8+
- `OAuthConfig`
9+
- `SignInCreateParams`
10+
- `PrepareVerificationParams`
11+
- `SignUpCreateParams`
12+
- `CreateExternalAccountParams`

packages/types/src/externalAccount.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import type { VerificationResource } from './verification';
77
export type ReauthorizeExternalAccountParams = {
88
additionalScopes?: OAuthScope[];
99
redirectUrl?: string;
10+
oidcPrompt?: string;
11+
oidcLoginHint?: string;
1012
};
1113

1214
export interface ExternalAccountResource extends ClerkResource {

packages/types/src/factors.ts

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ export type PassKeyConfig = PasskeyFactor;
101101
export type OAuthConfig = OauthFactor & {
102102
redirectUrl: string;
103103
actionCompleteRedirectUrl: string;
104+
oidcPrompt?: string;
105+
oidcLoginHint?: string;
104106
};
105107

106108
export type SamlConfig = SamlFactor & {

packages/types/src/signIn.ts

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ export type SignInCreateParams = (
183183
redirectUrl: string;
184184
actionCompleteRedirectUrl?: string;
185185
identifier?: string;
186+
oidcPrompt?: string;
187+
oidcLoginHint?: string;
186188
}
187189
| {
188190
strategy: TicketStrategy;

packages/types/src/signUp.ts

+4
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ export type PrepareVerificationParams =
127127
strategy: OAuthStrategy;
128128
redirectUrl?: string;
129129
actionCompleteRedirectUrl?: string;
130+
oidcPrompt?: string;
131+
oidcLoginHint?: string;
130132
}
131133
| {
132134
strategy: SamlStrategy;
@@ -171,6 +173,8 @@ export type SignUpCreateParams = Partial<
171173
ticket: string;
172174
token: string;
173175
legalAccepted: boolean;
176+
oidcPrompt: string;
177+
oidcLoginHint: string;
174178
} & Omit<SnakeToCamel<Record<SignUpAttributeField | SignUpVerifiableField, string>>, 'legalAccepted'>
175179
>;
176180

packages/types/src/user.ts

+2
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ export type CreateExternalAccountParams = {
138138
strategy: OAuthStrategy;
139139
redirectUrl?: string;
140140
additionalScopes?: OAuthScope[];
141+
oidcPrompt?: string;
142+
oidcLoginHint?: string;
141143
};
142144
export type VerifyTOTPParams = { code: string };
143145

0 commit comments

Comments
 (0)