🐛 Fix issues with login page

This commit is contained in:
Meier Lukas
2023-07-28 20:45:54 +02:00
parent d7f6bdf417
commit 326395730e
8 changed files with 1104 additions and 997 deletions

View File

@@ -0,0 +1,14 @@
import { OAuthConfig } from 'next-auth/providers';
export default function EmptyNextAuthProvider(): OAuthConfig<any> {
return {
id: 'empty',
name: 'Empty',
type: 'oauth',
profile: () => {
throw new Error(
'EmptyNextAuthProvider can not be used and is only a placeholder because credentials authentication can not be used as session authentication without additional providers.'
);
},
};
}