File tree 1 file changed +1
-18
lines changed
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -59,24 +59,7 @@ export interface VerificationToken {
59
59
* [Adapters Overview](https://next-auth.js.org/adapters/overview) |
60
60
* [Create a custom adapter](https://next-auth.js.org/tutorials/creating-a-database-adapter)
61
61
*/
62
- export type Adapter < WithVerificationToken = boolean > = DefaultAdapter &
63
- ( WithVerificationToken extends true
64
- ? {
65
- createVerificationToken : (
66
- verificationToken : VerificationToken
67
- ) => Awaitable < VerificationToken | null | undefined >
68
- /**
69
- * Return verification token from the database
70
- * and delete it so it cannot be used again.
71
- */
72
- useVerificationToken : ( params : {
73
- identifier : string
74
- token : string
75
- } ) => Awaitable < VerificationToken | null >
76
- }
77
- : { } )
78
-
79
- export interface DefaultAdapter {
62
+ export interface Adapter {
80
63
createUser : ( user : Omit < AdapterUser , "id" > ) => Awaitable < AdapterUser >
81
64
getUser : ( id : string ) => Awaitable < AdapterUser | null >
82
65
getUserByEmail : ( email : string ) => Awaitable < AdapterUser | null >
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Jul 16, 2023
Successfully deployed to the following URLs:
next-auth-docs – ./docs
next-auth-docs-authjs.vercel.app
next-auth-docs-dun.vercel.app
next-auth-docs-git-v4-authjs.vercel.app
next-auth.js.org
www.next-auth.js.org
v4.authjs.dev