MoroJSoro JS
DocsBenchmarksPlaygroundMigrate
GitHubGet started

Technical

API Reference & Architecture

DocsCLITechnical

Docs for @morojs/moro v1.8.0

Technical
API
Functions
GrpcRequireRole

@morojs/moro


@morojs/moro / grpcRequireRole

Function: grpcRequireRole()

grpcRequireRole(role): (call, callback?) => Promise<void>

Defined in: src/core/grpc/middleware/auth.ts:133

gRPC role check middleware

Parameters

role

string | string[]

Returns

(call, callback?): Promise<void>

Parameters

call

GrpcCall

callback?

GrpcCallback<any>

Returns

Promise<void>

Back to grpcRequireRoleView Source
MoroJSoro JS

A TypeScript backend framework with its own native engine. Zero dependencies, four runtimes.

Product

DocsBenchmarksPlaygroundCLIBlog

Compare

vs ExpressMigration guidesRoadmap

Community

GitHubDiscordXExamples

Legal

PrivacyTermsAbout
© CM Ventures, Inc. Built withfor the TypeScript community.