Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lovincyrus committed Dec 12, 2024
1 parent f36ae9c commit 814ea01
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions web-auth/src/components/Auth.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
let step: AuthStep = AuthStep.Base;
let webAuth: WebAuth;
$: isLegacy = false;
$: isSignup = false;
// $: isLegacy = false;
function isDomainDisabled(email: string): boolean {
return disableForgotPassDomainsArr.some((domain) =>
Expand All @@ -58,12 +57,19 @@
decodeURIComponent(escape(window.atob(configParams))),
) as Config;
isSignup = config?.extraParams?.screen_hint === "signup";
const isSignup = config?.extraParams?.screen_hint === "signup";
if (cloudClientIDsArr.includes(config?.clientID)) {
isLegacy = true;
if (isSignup) {
step = AuthStep.SignUp;
}
// UNCOMMENT to use `isLegacy` for rill dash check if needed
// NOTE: Check for cloud client ids from auth0 to allow sign up and login
// NOTE: Prevent rill dash (legacy) users from signing up
// if (cloudClientIDsArr.includes(config?.clientID)) {
// isLegacy = true;
// }
const authOptions: AuthOptions = Object.assign(
{
overrides: {
Expand Down

0 comments on commit 814ea01

Please sign in to comment.