Getting Twitter/X username with oAuth
Hey, how can I get twitter/x username during authentication?
3 Replies
I assume you're using the twitter social provider, in the config you can pass
mapProfileToUser so you could store their username as an additional field:
OAuth | Better Auth
How Better Auth handles OAuth
Makes sense!
Thank you @Max