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

Authentication errors in V2.0.0 #687

Closed
dlpzx opened this issue Aug 22, 2023 · 2 comments
Closed

Authentication errors in V2.0.0 #687

dlpzx opened this issue Aug 22, 2023 · 2 comments
Labels
type: bug Something isn't working type: modularization Code refactoring project

Comments

@dlpzx
Copy link
Contributor

dlpzx commented Aug 22, 2023

Describe the bug

When upgrading or deploying V2.0 branch main-v2, it is not possible to move from the log in window.
No matter if we refresh the page or clean the caches, we still land in the following page.
image

How to Reproduce

*P.S. Please do not attach files as it's considered a security risk. Add code snippets directly in the message body as much as possible.*

Expected behavior

No response

Your project

No response

Screenshots

No response

OS

na

Python version

na

AWS data.all version

V2.0.0

Additional context

No response

@dlpzx dlpzx added type: bug Something isn't working type: modularization Code refactoring project labels Aug 22, 2023
@dlpzx
Copy link
Contributor Author

dlpzx commented Aug 22, 2023

@nikpodsh Added some logging in one deployment. Thanks to the logs we can confirm that the first error actually happens when we reload the page in const user = await Auth.currentAuthenticatedUser(); in frontend/src/authentication/contexts/CognitoAuthContext.js:77 , there is no user

When later we then try to login, user is undefined ---> user.email.... fail with TypeError

So we need to investigate what has changed in https://aws-amplify.github.io/amplify-js/api/classes/authclass.html#currentauthenticateduser and in our code

@anmolsgandhi
Copy link
Contributor

Closing the issue as it has been resolved successfully by #689. Please feel free to reopen if you have any questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working type: modularization Code refactoring project
Projects
None yet
Development

No branches or pull requests

2 participants