"Auth.currentSession()" - "No userPool" error
Hello people, Hardcore JS plus AWS noob here. Appreciating the guide that you are presenting, and following it step by step. However, I am facing with an issue that I cannot wrap my head around.
The summary of the issue is, I am very well able to use functions such as login and sign up via aws-amplify(Auth), however, each time the app page get refreshed, my auth state is returning as logged out plus I am receiving "No userPool" error as prompt as well as on console. I am certain that I have entered correct information to "config.js" file. Error is occurring while I am trying to catch current session via "Auth.currentSession()" function. Any ideas?
@Selimonder Can you tell me after which step you are getting this error?
@jayair https://serverless-stack.com/chapters/load-the-state-from-the-session.html
exactly in this step.
@Selimonder Can you make sure you have this line - https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/master/src/index.js#L12 in your src/index.js?
Thank you, it is fixed. (I think there was an issue with order)