Skip to content

Commit 9f4067d

Browse files
committed
tidy
1 parent d327e1d commit 9f4067d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lambdas/download-authorizer/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ export function parseRequest(request: CloudFrontRequest) {
2525

2626
const poolScope = `CognitoIdentityServiceProvider.${userPoolClientId}`;
2727

28-
const LastAuthUser = cookies[`${poolScope}.LastAuthUser`];
28+
const lastAuthUser = cookies[`${poolScope}.LastAuthUser`];
2929

30-
const accessTokenKey = `${poolScope}.${LastAuthUser}.accessToken`;
31-
32-
const accessToken = cookies[accessTokenKey];
30+
const accessToken = cookies[`${poolScope}.${lastAuthUser}.accessToken`];
3331

3432
return {
3533
userPoolId,

0 commit comments

Comments
 (0)