Login page frontend #33
Open
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.
ℹ️ Issue
Enables authentication support for most routes
📝 Description
I added an authentication form with amplify which connects to our AWS cognito setup. This form is present if a user tries to access any route besides the pantry application route. The form features sign up and sign in functionality as well as a button to navigate to the pantry application route and a button to log donation for one time user (no functionality currently). I also added a sign out button component so it is possible to sign out. These changes are important because they protect our application from unverified users.
Briefly list the changes made to the code:
✔️ Verification
I navigated to each route to make sure it was protected by authentication. I also tested the manually added form buttons to make sure they navigated correctly. For the form itself, I tried signing in without signing up and I also tested proper behavior by making an account then signing in. I verified that I stayed signed in between routes until I clicked sign out by adding the sign out button to the landing page.
🏕️ (Optional) Future Work / Notes
I created a sign out button component that can be used to sign out.