Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can pretend to be authenticated by adding a "user" key manually to my localStorage #73

Open
rooberrydev opened this issue Nov 10, 2022 · 0 comments

Comments

@rooberrydev
Copy link

since your checks for authentication are user && or if(user) etc, where user is read from localstorage - its checking that a key of user exists - not whether that is a valid AWS authenticated user etc
amplify have a guide on how to setup protected routes with react

https://ui.docs.amplify.aws/react/guides/auth-protected

@AlexPD93 AlexPD93 moved this to Core in Away Days Nov 11, 2022
@AlexPD93 AlexPD93 moved this from Core to Unexpected behaviour in Away Days Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Unexpected behaviour
Development

No branches or pull requests

1 participant