Phil
BABetter Auth
•Created by Phil on 4/28/2025 in #help
How to link Generic OAuth to existing user
Ah, I figured it out: it requires a combination of setting
allowDifferentEmails: true
and using genericAuthClient.oauth2.link
instead of genericAuthClient.signIn.oauth2
.3 replies
BABetter Auth
•Created by Phil on 4/28/2025 in #help
How to link Generic OAuth to existing user
Here is my Generic OAuth config if it helps:
3 replies
BABetter Auth
•Created by Phil on 12/28/2024 in #help
Possible to pass an additional OAuth parameter?
Will do, thanks.
3 replies
BABetter Auth
•Created by Phil on 12/27/2024 in #help
Can't get user data mapped properly
Ah Ok, thanks, yeah I should have looked at the actual value of
tokens
that gets passed into that function. When I don't include any custom getUserInfo
function at all, the user data structure I posted above gets returned, so I assumed it was also coming into getUserInfo
. But it's not - tokens
just contains the actual OAuth token data itself.
So like you said, I guess I'll need to fetch the user info inside the function using the token.9 replies
BABetter Auth
•Created by Phil on 12/27/2024 in #help
Can't get user data mapped properly
Yes the redirect uri is set and I'm pretty sure that's working because Asana is properly returning the structure I posted above which is accurate for my currently-logged-in Asana user.
Well I've tried a lot of different things for
getUserInfo
- here's one of the simpler ones:
9 replies
BABetter Auth
•Created by Phil on 12/27/2024 in #help
Can't get user data mapped properly
I've had various bits of code in there for both
getUserInfo
and mapProfileToUser
but nothing has worked.9 replies
BABetter Auth
•Created by Phil on 12/27/2024 in #help
Can't get user data mapped properly
Sure:
9 replies