Relative Content

Tag Archive for javascriptamazon-web-serviceslambdaaws-amplify

Aws lambda authorizer allow fields

// amplify/data/custom-authorizer.ts // This is sample code. Update this to suite your needs import type { AppSyncAuthorizerHandler } from ‘aws-lambda’; // types imported from @types/aws-lambda type ResolverContext = { userid: string; info: string; more_info: string; }; export const handler: AppSyncAuthorizerHandler<ResolverContext> = async ( event ) => { console.log(`EVENT: ${JSON.stringify(event)}`); const { authorizationToken, requestContext: { apiId, […]