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 3f9f457 commit 7a7a251Copy full SHA for 7a7a251
src/common/providers/https.ts
@@ -843,8 +843,6 @@ function wrapOnCallHandler<Req = any, Res = any>(
843
844
const data: Req = decode(req.body.data);
845
if (options.authPolicy) {
846
- // Don't ask me why, but Google decided not to disambiguate between unauthenticated and unauthorized
847
- // in GRPC status codes, despite the pedantry to disambiguate the two in architecture design.
848
const authorized = await options.authPolicy(context.auth ?? null, data);
849
if (!authorized) {
850
throw new HttpsError("permission-denied", "Permission Denied");
0 commit comments