We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AdapterAccountType
1 parent d55b156 commit bfa7079Copy full SHA for bfa7079
packages/core/src/adapters.ts
@@ -185,6 +185,14 @@ export interface AdapterUser extends User {
185
emailVerified: Date | null
186
}
187
188
+/**
189
+ * The type of account.
190
+ */
191
+export type AdapterAccountType = Extract<
192
+ ProviderType,
193
+ "oauth" | "oidc" | "email" | "webauthn"
194
+>
195
+
196
/**
197
* An account is a connection between a user and a provider.
198
*
@@ -196,7 +204,7 @@ export interface AdapterUser extends User {
204
*/
205
export interface AdapterAccount extends Account {
206
userId: string
199
- type: Extract<ProviderType, "oauth" | "oidc" | "email" | "webauthn">
207
+ type: AdapterAccountType
200
208
201
209
202
210
0 commit comments