-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Custom storage docs are contradictory #1687
Comments
Hi @MatteoGioioso - thanks for reaching out. I'm going to move to our docs repo since this seems like a doc issue/question. cc @Brene |
@mauerbac sorry, didn't notice there was a repo for the docs |
@MatteoGioioso – You're right. Auth checks if an object passed as a storage parameter is valid by using this function, which checks the type of required methods. Since all of the methods are static, this check does not work with an initialized class. |
Hi, Closing this issue as the docs has been updated to reflect the right way of using this. |
Describe the bug
At this part of the docs on setting up Amplify
The description says:
new MyStorage(),
However when it goes in details on how to override the
storage
property:this is what is shown:
I have tested and the first one looks like is not working, however the second, without instantiating the class is working.
Could please someone clarify if this is wanted or a mistake?
Thanks
The text was updated successfully, but these errors were encountered: