#[Solved] OAuth2 issues

1 messages · Page 1 of 1 (latest)

cold glade
#

Heyo, this should work fine, right?

  const handleDiscordLogin = async () => {
    account.createOAuth2Session(
      "discord",
      `${process.env.NEXT_PUBLIC_DOMAIN}/account`,
      `${process.env.NEXT_PUBLIC_DOMAIN}/login?failure=true`
    );
  };
#

Getting Missing redirect URL, but I wouldn't know where else to add it.

#

And assistant is giving me:

account.create_oauth2_session(
    provider='google',
    success='https://your-website.com/success',
    failure='https://your-website.com/failure'
)

Which is very incorrect 1lolol

#

Okay.. so it seems that using variables doesn't work? I have to use hardcoded values. Doesn't make sense in my point of view, but sure?

cold glade
#

OAuth2 issues

#

So, after creating a OAuth2 session, what then?

shrewd terrace
shrewd terrace
cold glade
hushed lion
cold glade
hushed lion
hushed lion
cold glade
hushed lion
cold glade
#

Thanks!