MCPcopy
hub / github.com/tsedio/tsed / LocalProtocol

Class LocalProtocol

packages/security/passport/src/services/ProtocolsService.spec.ts:13–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12describe("ProtocolsService", () => {
13 @Protocol({
14 name: "local",
15 useStrategy: Strategy as any,
16 settings: {
17 prop1: "prop1",
18 prop2: "prop2"
19 }
20 })
21 class LocalProtocol {
22 $beforeInstall(settings: any) {
23 return Promise.resolve(settings);
24 }
25
26 $onInstall() {}
27
28 $onVerify(@Req() req: Req) {
29 return {id: 0};
30 }
31 }
32
33 beforeEach(() =>
34 PlatformTest.create({

Callers

nothing calls this directly

Calls 1

ProtocolFunction · 0.85

Tested by

no test coverage detected