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,
},
)
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,
}
},
})
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,
}
},
})
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?