Skip to content
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

Domain Changes in Twitter #10988

Closed
Advanced-Boy-Shreyash opened this issue May 22, 2024 · 1 comment
Closed

Domain Changes in Twitter #10988

Advanced-Boy-Shreyash opened this issue May 22, 2024 · 1 comment
Labels
bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@Advanced-Boy-Shreyash
Copy link

Provider type

Twitter

Environment

 System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 1.02 GB / 7.87 GB
  Binaries:
    Node: 20.11.0 - E:\Node JS\node.EXE
    npm: 10.5.2 - E:\Node JS\npm.CMD
  Browsers:
    Edge: Chromium (124.0.2478.105)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    next: 14.2.3 => 14.2.3
    next-auth: ^4.24.7 => 4.24.7
    react: ^18 => 18.3.1

Reproduction URL

https://github.com/Advanced-Boy-Shreyash/NextJS-Project

Describe the issue

I was practicing next auth and when using twitter auth I realize that domain of twitter has changed so when I was trying to click on Login with Twitter I found that it is redirecting me to a page which suggests me to login with another method.

So there is a need of change for TWITTER OAUTH links used in this signIn('twitter') function.

Here is my route on which I am working (origin\api[...nextauth]\route.js):

import NextAuth from 'next-auth'
import TwitterProvider from "next-auth/providers/twitter"

export const authoptions = NextAuth({
    providers: [
        TwitterProvider({
            clientId: process.env.TWITTER_CLIENT_ID,
            clientSecret: process.env.TWITTER_CLIENT_SECRET
        }),
    ]
})

export { authoptions as GET, authoptions as POST }

How to reproduce

To reproduce

  1. Just start the app with : npm run dev
  2. On http://localhost:3000/login try clicking on Login with Twitter

Expected behavior

Expected is that it should redirect user to a twitter page which is changed to x.com for entering users credentials or authentication.
image

@Advanced-Boy-Shreyash Advanced-Boy-Shreyash added bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels May 22, 2024
@balazsorban44
Copy link
Member

Fixed in #11047

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants