TinaHeiligers / react-auth-boilerplate

0 stars 0 forks source link

Handle 'remember url' functionality when an end user is forced to log in again #19

Open TinaHeiligers opened 6 years ago

TinaHeiligers commented 6 years ago

When an end user is required to log in again (generation of a fresh auth token), to enhance UX, we want to redirect them back to the page they were on before having to log in again. The server method 'setJWTAndRespond' takes in an optional url for redirection after responding. The client needs to send the url to the server.