1 回答
- 最新
- 投票最多
- 评论最多
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.
已回答 1 年前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前