简体   繁体   中英

How to access authenticated GraphQL API from Nuxt frontend

I have an authenticated GraphQL API endpoint created using Appsync and Cognito (basic email and password authentication). How I can connect to this API from an existing Nuxt frontend application? I don't want to use the default vue frontend created by aws amplify.

  1. Open AWS AppSync GUI
  2. click APIs
  3. select your appbackend
  4. Open Integrate with your app
  5. Click on Javascript tab
  6. copy that cli commands and run them (from your Nuxt frontend app's root)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM