Issue with OIDC Consent Page

I have a really weird behavior trying to use the BetterAuth OIDC client.

I have a really simple setup as described in the docs, but when using
const { error, data } = await signIn.email(
        {
          email: data.email,
          password: data.password,
          callbackURL: callbackUrl,
        },
      )

Rather than getting redirected to the consentPage as defined in the config, data is the fetched result of the consent page, and I'm not gettinf redirected, am i doing something wrong?

here is my oidc provider config:

  oidcProvider({
        consentPage: "/consent",
        loginPage: "/sign-in",
        getAdditionalUserInfoClaim(user, scopes) {
          return {
            sub: user.id,
            email: user.email,
            email_verified: user.emailVerified,
            name: user.name,
            role: user.role,
          }
        },
      })
Was this page helpful?