thederezz
thederezz
BABetter Auth
Created by shu-sin on 4/6/2025 in #bug-reports
Generic oauth failing on missing email
Ran into the same problem, spent the last 2 days trying to figure it out and your comment helped me. Since in the code it's only checking if the email is there, you can literally put anything. In my case I just put the username.
getUserInfo: async (tokens) => {
const profile = await getUserProfile(tokens.accessToken);

return {
id: profile.id,
name: profile.name,
email: profile.username,
image: profile.threads_profile_picture_url,
emailVerified: true,
createdAt: new Date(),
updatedAt: new Date(),
};
}
getUserInfo: async (tokens) => {
const profile = await getUserProfile(tokens.accessToken);

return {
id: profile.id,
name: profile.name,
email: profile.username,
image: profile.threads_profile_picture_url,
emailVerified: true,
createdAt: new Date(),
updatedAt: new Date(),
};
}
6 replies