ai-comic-factory / src /lib /useOAuthEnabled.ts
jbilcke-hf's picture
jbilcke-hf HF staff
working on the Hugging Face Sign-In
0ed5b20
raw
history blame
No virus
186 Bytes
"use client"
export function useOAuthEnabled(): boolean {
const isOAuthEnabled = `${process.env.NEXT_PUBLIC_ENABLE_HUGGING_FACE_OAUTH || "false"}` === "true"
return isOAuthEnabled
}