-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to authorize using example #59
Comments
I have same issue. node 18.12.1 |
In the meantime, you can try The oauth2-callback_pkce_plain example. |
I fixed this issue by specifying the state |
@Stefanuk12 can you post an example of your code? I specified the state and am trying to login with |
const authUrl = authClient.generateAuthURL({
code_challenge_method: "s256",
state: STATE,
}) |
Hm I get the error message when specifying
Thanks for the fast response! @Stefanuk12 |
If you're having issues, open |
make sure your /callback endpoint has res.send or res.redirect at the end or it will time out
works fine for me even with s256 challenge method |
Failed to authorize using example
Expected behavior
Twitter should ask to confirm if I want to give access to the app
Actual behavior
Twitter shows an error page:
Steps to reproduce the behavior
Access the URL from:
Brand new twitter account.
Fresh
CLIENT_ID
andCLIENT_SECRET
.Different from #38,
CALLBACK_URL
is added to the app's settings:The text was updated successfully, but these errors were encountered: