Skip to content

auth.UserServiceContract

Sclable CI edited this page Sep 11, 2024 · 198 revisions

Interface: UserServiceContract<UserType>

auth.UserServiceContract

Type parameters

Name Type
UserType extends ApplicationUserContract

Hierarchy

Implemented by

Table of contents

Methods

Methods

createFromExternalUserData

createFromExternalUserData(userData): UserID | Promise<UserID>

Parameters

Name Type
userData AuthProviderUserContract

Returns

UserID | Promise<UserID>

Defined in

packages/auth/src/contracts/user-service.contract.ts:11


getOneByExternalId

getOneByExternalId(externalId): null | UserType | Promise<null | UserType>

Parameters

Name Type
externalId UserID

Returns

null | UserType | Promise<null | UserType>

Defined in

packages/auth/src/contracts/user-service.contract.ts:6


getOneById

getOneById(userId): null | UserType | Promise<null | UserType>

Parameters

Name Type
userId UserID

Returns

null | UserType | Promise<null | UserType>

Defined in

packages/auth/src/contracts/user-service.contract.ts:5


getOneByUsernameAndPassword

getOneByUsernameAndPassword(username, password): null | UserType | Promise<null | UserType>

Parameters

Name Type
username string
password string

Returns

null | UserType | Promise<null | UserType>

Defined in

packages/auth/src/contracts/user-service.contract.ts:7


updateFromExternalUserData

updateFromExternalUserData(userData): UserID | Promise<UserID>

Parameters

Name Type
userData AuthProviderUserContract

Returns

UserID | Promise<UserID>

Defined in

packages/auth/src/contracts/user-service.contract.ts:12

Clone this wiki locally