mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
feat(provider): twitter email support (#2176)
This commit is contained in:
committed by
GitHub
parent
014a9aa9ad
commit
48efd6ad1f
@@ -10,13 +10,8 @@ description: Twitter provider setup and usage.
|
||||
|
||||
Make sure to set the redirect URL to `http://localhost:3000/api/auth/callback/twitter` for local development. For production, you should set it to the URL of your application. If you change the base path of the auth routes, you should update the redirect URL accordingly.
|
||||
|
||||
{ /*
|
||||
<Callout type="warn">
|
||||
If twitter doesn't return the email address, the authentication won't be successful. Make sure to ask for the email address when you create the Twitter app.
|
||||
</Callout>
|
||||
*/}
|
||||
<Callout type="info">
|
||||
Twitter API v2 does not provide email addresses. As a workaround, the user's `email` field uses the `username` value instead.
|
||||
Twitter API v2 now supports email address retrieval. Make sure to request the `user.email` scope when configuring your Twitter app to enable this feature.
|
||||
</Callout>
|
||||
</Step>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user