@prismshadow/penguin-library-auth · library/auth/src/auth.ts:92

Admin

interface

Admin: the mechanism AdminService implements.

API

@Interface()
export abstract class Admin {
  abstract listUsers(): UserInfo[];
  abstract createUser(userId: string, password: string): Promise<UserInfo>;
  abstract resetPassword(userId: string, password: string): Promise<void>;
  abstract deleteUser(userId: string): Promise<void>;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Moduleexported by
@Provideprovided by
@Useconsumed by (1)

Members (4)

listUsers

listUsers(): UserInfo[]
@returnsUserInfo[]

createUser

createUser(userId: string, password: string): Promise<UserInfo>
@paramuserIdstring
@parampasswordstring
@returnsPromise<UserInfo>

resetPassword

resetPassword(userId: string, password: string): Promise<void>
@paramuserIdstring
@parampasswordstring
@returnsPromise<void>

deleteUser

deleteUser(userId: string): Promise<void>
@paramuserIdstring
@returnsPromise<void>