mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-01 20:29:17 +01:00
🐛 Fix issues with login page
This commit is contained in:
14
src/utils/empty-provider.ts
Normal file
14
src/utils/empty-provider.ts
Normal 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.'
|
||||
);
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user