1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa