aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/rpc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/rpc.go b/server/rpc.go
index ce95e96..45f84f0 100644
--- a/server/rpc.go
+++ b/server/rpc.go
@@ -53,8 +53,8 @@ func authInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServe
if !authprovider.Valid(token) {
return nil, grpc.Errorf(codes.PermissionDenied, "access denied")
}
- authprovider.Revoke(token)
ctx = context.WithValue(ctx, usernameKey, authprovider.Username(token))
+ authprovider.Revoke(token)
default:
return nil, grpc.Errorf(codes.InvalidArgument, "unknown argument")
}