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.jsfile, theaws-exports.jsfile should import with path~/aws-exportssince there is nosrcdirectory in nuxtThe plugin also needs to be added to
nuxt-config.jsin the plugins array as client-only by addingThe profile file should be in the pages directory and call
profile.vuerather thanprofile.jsHi, 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.