Code Monkey home page Code Monkey logo

Comments (1)

ac360 avatar ac360 commented on May 16, 2024

When you run a Lambda function in your JAWS API, the data in that function's event.json file is submitted to the Lambda function. event.json should contain url params, url query strings and a JSON body submitted via a POST or PUT http request. -- I'm going to add this in comments in each of the event.json file and write more information to help you and everyone understand this tonight.

The event.json in the users/show function includes an access_token. This access_token is a JSON Web Token and it was left over from one of my own user records when I was developing JAWS. In short, the access token you are using does not pertain to any user records in your database.

You need to first follow the DynamoDB section in the Installation guide, run the user/sign-up function to create a user in your own DynamoDB Users table, then take the jwt/access token that is received when you sign up a new user and put it in the event.json to use with the users/show function.

Lots of helpful information on this process will be published in the next few hours.

Also, I will update the Installation guide to include that "Role Type" step. Sorry about that!

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.