I'm a software engineer who loves creating prototypes, tools, and basically anything that automates. I work mostly on the frontend, and love exploring unique frontend problems.
Hi, do you have any resources that could help me setup Amplify with an existing auth configuration? I created an amplify plugin file (docs.amplify.aws/lib/auth/start/q/...) and added it to nuxt.config.js, but I get this error:
AuthError -
Error: Amplify has not been configured correctly.
The configuration object is missing required auth properties.
Just wondering in case you have any experience with this.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi @dabit3 ,
Thank you for the contribution, there is not a lot of info out there on nuxt and Amplify.
I wanted to point out a few things to help improve this for others:
As @arunans23 pointed out - npm install should be
In
profile\amplify.js
file, theaws-exports.js
file should import with path~/aws-exports
since there is nosrc
directory in nuxtThe plugin also needs to be added to
nuxt-config.js
in the plugins array as client-only by addingThe profile file should be in the pages directory and call
profile.vue
rather thanprofile.js
Hi, do you have any resources that could help me setup Amplify with an existing auth configuration? I created an amplify plugin file (docs.amplify.aws/lib/auth/start/q/...) and added it to nuxt.config.js, but I get this error:
Just wondering in case you have any experience with this.