You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Just start the app with : npm run dev
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.
The text was updated successfully, but these errors were encountered:
Provider type
Twitter
Environment
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):
How to reproduce
To reproduce
npm run dev
http://localhost:3000/login
try clicking on Login with TwitterExpected 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](https://private-user-images.githubusercontent.com/99673377/332777934-c2a00b59-8314-4dc2-8fed-371802096d0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzODA1NTgsIm5iZiI6MTcxOTM4MDI1OCwicGF0aCI6Ii85OTY3MzM3Ny8zMzI3Nzc5MzQtYzJhMDBiNTktODMxNC00ZGMyLThmZWQtMzcxODAyMDk2ZDBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDA1MzczOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1NWU4ZGQ3OTU3NmY1Njg4NDEwMGQwYTYyZmM5ODI5YzdlZDljZGVmYzg0ZDA3OGQwZDY2YWFiMmRhNzRjNjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HrGxRt5-x5QqENGg5BkZ3C-Am2MXjr1cKupvwTvCR_M)
The text was updated successfully, but these errors were encountered: