1 Answer
- Newest
- Most votes
- Most comments
0
Yes, it is possible to query information after logging in and passing the Cognito user to the query function. One way to do this is to include the Cognito user's JWT token in the Authorization header of the GraphQL request. This can be done by retrieving the JWT token from the Cognito user object after a successful login and including it in the headers of the GraphQL request. You may also need to configure your AppSync API to require authentication using the Cognito user pool, and to pass the JWT token as an argument to the resolvers that handle the GraphQL queries. This way, the resolvers will be able to access the user's identity and use it to determine what data to return in the response.
answered a year ago
Relevant content
- asked 9 months ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago