mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
add ts ignore for auth funct
This commit is contained in:
@@ -10,10 +10,12 @@ const authOptions: NextAuthOptions = {
|
||||
name: 'credentials',
|
||||
credentials: {},
|
||||
|
||||
// TODO: Not sure how to type authorize function correctly
|
||||
// @ts-ignore
|
||||
async authorize(credentials: {
|
||||
email: string;
|
||||
password: string;
|
||||
}): Promise<null | User | undefined> {
|
||||
}): Promise<User | null | undefined> {
|
||||
const { email, password } = credentials;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user