Guest User

Untitled

a guest
Dec 13th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. const client = new AWSAppSyncClient({
  2. url: AppSyncConfig.aws_appsync_graphqlEndpoint,
  3. region: AppSyncConfig.aws_appsync_region,
  4. auth: {
  5. type: AUTH_TYPE.AMAZON_COGNITO_USER_POOLS,
  6. jwtToken: async () =>
  7. (await Auth.currentSession()).getIdToken().getJwtToken()
  8. }
  9. });
Add Comment
Please, Sign In to add comment