mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
Refactor useAuthModes to log environment variable and auth modes
This commit is contained in:
parent
64086b108b
commit
3efc8ca565
@ -3,8 +3,10 @@ export const useAuthModes = () => {
|
||||
const authModes = process.env.NEXT_PUBLIC_AUTH_MODES?.split(",") ?? [
|
||||
"password",
|
||||
];
|
||||
|
||||
console.log('Environment Variable NEXT_PUBLIC_AUTH_MODES:', process.env.NEXT_PUBLIC_AUTH_MODES);
|
||||
console.log('authModes:', authModes);
|
||||
|
||||
return {
|
||||
magicLink: authModes.includes("magic_link"),
|
||||
password: authModes.includes("password"),
|
||||
|
Loading…
Reference in New Issue
Block a user