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.
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 2년 전