Nightlife Coordination App Login Redirection

Nightlife Coordination App Login Redirection
0

#1

Actually what i want is to authenticate the user from twitter and redirect him to the last search he has performed.Rather then, redirecting him to the home page.

I am using React,Express and mongodb (mongoose).

P.S: I have searched quite a lot but couldn’t file anything that would best address my issue.


#2

why not save the search terms in a database and have some conditional logic when a user logs in - a lot depends on the many different factors that come into play - but say your search results url was something like www.nightlife.com/search?query=[search text here] - you could just place in the query from the database