Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const client = new AWSAppSyncClient({
- url: AppSyncConfig.aws_appsync_graphqlEndpoint,
- region: AppSyncConfig.aws_appsync_region,
- auth: {
- type: AUTH_TYPE.AMAZON_COGNITO_USER_POOLS,
- jwtToken: async () =>
- (await Auth.currentSession()).getIdToken().getJwtToken()
- }
- });
Add Comment
Please, Sign In to add comment