How do i get the twitter return url when authenticating using passport twitter

126 views Asked by At

I'm using passport twitter to authenticate and while it does work and redirect me to the main page i want to save the oauth token that's there in the url before it redirects me to my main page as i want to use it to update user's profile image

1

There are 1 answers

0
Anoushk On

Well turns out it was pretty simple

i just had to use req.url in the passport.authenticate() callback function