Refactor useAuthModes to log environment variable and auth modes

This commit is contained in:
Stan Girard 2024-05-04 15:34:15 +02:00
parent 64086b108b
commit 3efc8ca565

View File

@ -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"),