mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-12 11:26:07 +03:00
91fbf154d0
Fix https://github.com/StanGirard/quivr/issues/1524 Demo: https://github.com/StanGirard/quivr/assets/63923024/d1365b67-060e-488f-ad10-ca6ce2ac373a
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
export const useAuthModes = () => {
|
|
const authModes = process.env.NEXT_PUBLIC_AUTH_MODES?.split(",") ?? [
|
|
"password",
|
|
];
|
|
|
|
return {
|
|
magicLink: authModes.includes("magic_link"),
|
|
password: authModes.includes("password"),
|
|
googleSso: authModes.includes("google_sso"),
|
|
};
|
|
};
|