mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-23 04:17:48 +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