G
G
goju2017-05-08 04:12:47
Google
goju, 2017-05-08 04:12:47

How to remove the ability to return to the previous page after authentication (Google, FB, Twitter)?

Made a simple integration of Facebook, Twitter, Google using Passport for the node.
And I observe a not very pleasant experience - after a successful login, if the user presses Back in the browser (return to the previous page), then errors will pop up for him.
1. How to competently manage these routes? Node, Express, Passport
2. How to remove the ability to return to the previous page when the user has passed authentication (can clean the headers or the like - no idea).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sasha, 2017-05-08
@madmages

googlehistory.replaceState()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question