Closed kpickreign22 closed 11 months ago
Hi @kpickreign22, thanks for opening this issue. I'm taking a look into this and one thing I wanted to point out is that you shouldn't need to call Auth.configure(awsmobile)
since you already have Amplify.configure(awsmobile)
I haven't tried to reproduce this yet, but could you remove the second call Auth.configure()
just to be sure that there aren't any conflicts happening?
Additionally, be sure to confirm that Amplify.configure()
is being called at the entry point of your app.
Originally I only used Amplify.configure(awsmobile)
but multiple people used both Auth and Amplify and it worked. However, neither works. Amplify.configure(awsmobile)
is being called in main.js - electron app entry point.
Hi there,
currently facing the same issue in my Nuxt.js application when ever I turn server side rendering (SSR) on but works fine in SPA mode
@kpickreign22, can you please share you full package.json
?
and @Kongbi-Zion, are you getting the same error reported here? If so, would you mind also sharing what you have for dependencies in your package.json
and possibly some of the frontend code making Auth calls?
Hi @kpickreign22 following up here - i haven't been able to reproduce this issue in an electron app. Can you confirm the versions you were facing this issue on?
These are the versions that work fine for me
{
"devDependencies": {
"electron": "^26.1.0"
},
"dependencies": {
"aws-amplify": "^5.3.10"
}
}
I've also setup a mini electron app that utilizes amplify auth here - https://github.com/nadetastic/electron-amplified
Hi @kpickreign22 , im going to close out this issue as there hasn't been any response in a while. If you still have questions please let me know and we can continue discussing. Thanks!
Before opening, please confirm:
JavaScript Framework
Not applicable
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
I am making an electron desktop app with Amplify. When I try to sign up a user I get the below error wich seems common for amplify:
VM9640 ConsoleLogger.js:125 [ERROR] 00:14.280 AuthError - Error: Amplify has not been configured correctly. The configuration object is missing required auth properties.
Expected behavior
I am expecting to be able to sign up a user using Amplify.
Reproduction steps
create electron forge app install amplify configure amplify in main.js set up signup in proload.js call sign up in signup.js
Code Snippet
main.js:
signup.js:
preload.js:
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response