daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top