Skip to content

Commit 7a7a251

Browse files
committed
remove ignorant comment
1 parent 3f9f457 commit 7a7a251

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/common/providers/https.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,6 @@ function wrapOnCallHandler<Req = any, Res = any>(
843843

844844
const data: Req = decode(req.body.data);
845845
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.
848846
const authorized = await options.authPolicy(context.auth ?? null, data);
849847
if (!authorized) {
850848
throw new HttpsError("permission-denied", "Permission Denied");

0 commit comments

Comments
 (0)