Skip to content

Commit 87e09a7

Browse files
Make APIGatewayV2Request authorizer claims optional (#8)
APIGatewayV2Request authorizer claims are optional, allowing a nil value.
1 parent 06f076a commit 87e09a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AWSLambdaEvents/APIGateway+V2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public struct APIGatewayV2Request: Codable {
2828
public struct Authorizer: Codable {
2929
/// JWT contains JWT authorizer information for the request context.
3030
public struct JWT: Codable {
31-
public let claims: [String: String]
31+
public let claims: [String: String]?
3232
public let scopes: [String]?
3333
}
3434

0 commit comments

Comments
 (0)