We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec3061 commit f50dc89Copy full SHA for f50dc89
src/http/auth.ts
@@ -115,6 +115,11 @@ export abstract class CognitoAuthorizer {
115
this.assertAuthenticated();
116
return this.claims!.sub as string;
117
}
118
+
119
+ public getClaim(name: string): string | number | boolean | string[] | undefined {
120
+ this.assertAuthenticated();
121
+ return this.claims![name];
122
+ }
123
124
125
export class ApiGatewayv2CognitoAuthorizer extends CognitoAuthorizer {
0 commit comments