MCPcopy
hub / github.com/loopbackio/loopback-next / addUser

Method addUser

packages/security/src/types.ts:164–168  ·  view source on GitHub ↗
(...users: UserProfile[])

Source from the content-addressed store, hash-verified

162 readonly credentials = new Set<Credential>();
163
164 addUser(...users: UserProfile[]) {
165 for (const user of users) {
166 this.principals.add(new TypedPrincipal(user, 'USER'));
167 }
168 }
169
170 addApplication(app: ClientApplication) {
171 this.principals.add(new TypedPrincipal(app, 'APPLICATION'));

Callers 1

subject.unit.tsFile · 0.80

Calls 1

addMethod · 0.65

Tested by

no test coverage detected