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

No Auth module registered in Amplify #2058

Closed
tafelito opened this issue Nov 6, 2018 · 7 comments
Closed

No Auth module registered in Amplify #2058

tafelito opened this issue Nov 6, 2018 · 7 comments
Assignees
Labels
Auth Related to Auth components/category investigating This issue is being investigated

Comments

@tafelito
Copy link

tafelito commented Nov 6, 2018

Describe the bug
Same issue as #1977 and maybe related to #1761. Both issues are closed so I opened a new one.

I'm still having the same issue reported there. Problem seems to be on this line

if (Amplify.Auth && typeof Amplify.Auth.currentUserCredentials === 'function') {

Amplify.Auth is null.

To Reproduce
Steps to reproduce the behavior:
Same as #1761 (comment)

Desktop (please complete the following information):

  • OS: MacOS
  • Browser [any]

Additional context
I'm using "@aws-amplify/auth": "^1.2.9", @aws-amplify/storage": "^1.0.18"

@haverchuck
Copy link
Contributor

@tafelito Are you importing the Auth package before using Storage?

@haverchuck haverchuck self-assigned this Nov 6, 2018
@haverchuck haverchuck added investigating This issue is being investigated Auth Related to Auth components/category labels Nov 6, 2018
@tafelito
Copy link
Author

tafelito commented Nov 7, 2018

@haverchuck yes, I use Auth for login, then Storage after

These are the logs I'm getting

image
image

@tafelito
Copy link
Author

@haverchuck I just updated both auth (1.2.15) and storage (1.0.25) packages and now the error seems to be different

image

The error is because the list of _pluggables list is empty, but as you see here, it looks like the pluggable is inside the vault
image

@stale
Copy link

stale bot commented Jun 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Jun 22, 2019

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

@stale stale bot closed this as completed Jun 22, 2019
@kldeb
Copy link

kldeb commented Jul 23, 2020

what was the solution?

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Auth Related to Auth components/category investigating This issue is being investigated
Projects
None yet
Development

No branches or pull requests

3 participants