feat: add signup button, fix 'back' button on login #686
+32
−16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sign up
For users viewing a shared file who are not authenticated, we show a message saying they need to login.
If they hit "Log in" they get taken to the auth0 login page:
Where they can login, or if they are new, sign up.
This PR adds an additional "Sign up" button
Which allows them to jump directly to the sign up page:
'Back' button on login
Previous behavior:
/login
which then redirects them to auth0]When you hit the back button, it's navigating you to
/login
which automatically redirects you back to auth0. So you get stuck in this loop where hitting "back" doesn't take you back to the file.New behavior:
/login
which then redirects them to auth0]This properly replaces the
/login
entry in the history stack so when the user hits "log in" and ends up on auth0, they can hit 'back' in the browser and end up back on the shared file they were just looking at.