Skip to content

Commit bfa7079

Browse files
authored
chore(types): separately export AdapterAccountType (#10832)
1 parent d55b156 commit bfa7079

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/core/src/adapters.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ export interface AdapterUser extends User {
185185
emailVerified: Date | null
186186
}
187187

188+
/**
189+
* The type of account.
190+
*/
191+
export type AdapterAccountType = Extract<
192+
ProviderType,
193+
"oauth" | "oidc" | "email" | "webauthn"
194+
>
195+
188196
/**
189197
* An account is a connection between a user and a provider.
190198
*
@@ -196,7 +204,7 @@ export interface AdapterUser extends User {
196204
*/
197205
export interface AdapterAccount extends Account {
198206
userId: string
199-
type: Extract<ProviderType, "oauth" | "oidc" | "email" | "webauthn">
207+
type: AdapterAccountType
200208
}
201209

202210
/**

0 commit comments

Comments
 (0)