Features
Docs
CLI
Benchmarks
Examples

© 2024 MoroJs

@morojs/moro


@morojs/moro / grpcAuth

Function: grpcAuth()

grpcAuth(options): (call, callback?) => Promise<void>

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

gRPC authentication middleware Verifies JWT tokens from gRPC metadata

Parameters

options

required?

boolean

secret?

string

verify?

(token) => Promise<any>

Returns

(call, callback?): Promise<void>

Parameters

call

GrpcCall

callback?

GrpcCallback<any>

Returns

Promise<void>