Scott McKenzie
Scott McKenzie

Reputation: 16242

How do I use a Cognito token with API?

I've successfully signed into an iOS app using Google oAuth and been able to get a Cognito token and ID. Now, I'd like to call a node.js API to perform some action on DynamoDB.

What and how do I pass to my API call? What authentication and suthorisation checks can I perform in the API method itself?

Background: I don't want to expose/leak and details of the underlying storage back to the user so I won't be using DynamoDB, for example, from within the app itself.

Upvotes: 2

Views: 1992

Answers (1)

perpil
perpil

Reputation: 1584

I've answered this in your post to the AWS Cognito Forum: https://forums.aws.amazon.com/thread.jspa?threadID=160363

Upvotes: 3

Related Questions