File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Examples/APIGateway+LambdaAuthorizer/Sources/AuthorizerLambda Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import AWSLambdaRuntime
22
22
// This code is shown for the example only and is not used in this demo.
23
23
// This code doesn't perform any type of token validation. It should be used as a reference only.
24
24
let policyAuthorizerHandler :
25
- ( APIGatewayLambdaAuthorizerRequest , LambdaContext ) async throws -> APIGatewayLambdaAuthorizerPolicyResponse = {
25
+ @ Sendable ( APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws -> APIGatewayLambdaAuthorizerPolicyResponse = {
26
26
( request: APIGatewayLambdaAuthorizerRequest , context: LambdaContext ) in
27
27
28
28
context. logger. debug ( " +++ Policy Authorizer called +++ " )
@@ -57,7 +57,7 @@ let policyAuthorizerHandler:
57
57
//
58
58
// This code doesn't perform any type of token validation. It should be used as a reference only.
59
59
let simpleAuthorizerHandler :
60
- ( APIGatewayLambdaAuthorizerRequest , LambdaContext ) async throws -> APIGatewayLambdaAuthorizerSimpleResponse = {
60
+ @ Sendable ( APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws -> APIGatewayLambdaAuthorizerSimpleResponse = {
61
61
( _: APIGatewayLambdaAuthorizerRequest , context: LambdaContext ) in
62
62
63
63
context. logger. debug ( " +++ Simple Authorizer called +++ " )
You can’t perform that action at this time.
0 commit comments