Skip to content

Commit bdb4019

Browse files
fix(ts): bad intersection caused type to be 'never' (#9477)
1 parent e45492a commit bdb4019

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/providers/oauth.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ export interface OAuth2Config<Profile>
239239
export interface OIDCConfig<Profile>
240240
extends Omit<OAuth2Config<Profile>, "type" | "checks"> {
241241
type: "oidc"
242-
checks?: Array<
243-
Exclude<OAuth2Config<Profile>["checks"], undefined>[number] | "nonce"
244-
>
242+
checks?: Array<NonNullable<OAuth2Config<Profile>["checks"]>[number] | "nonce">
245243
}
246244

247245
export type OAuthConfig<Profile> = OIDCConfig<Profile> | OAuth2Config<Profile>

0 commit comments

Comments
 (0)