Skip to content

auth.TestUserServiceContract

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

Interface: TestUserServiceContract<UserType>

auth.TestUserServiceContract

Type parameters

Name Type
UserType extends ApplicationUserContract

Hierarchy

Table of contents

Methods

Methods

createFromExternalUserData

createFromExternalUserData(userData): UserID | Promise<UserID>

Parameters

Name Type
userData AuthProviderUserContract

Returns

UserID | Promise<UserID>

Inherited from

UserServiceContract.createFromExternalUserData

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>

Inherited from

UserServiceContract.getOneByExternalId

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>

Inherited from

UserServiceContract.getOneById

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>

Inherited from

UserServiceContract.getOneByUsernameAndPassword

Defined in

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


getTestUser

getTestUser(): UserType | Promise<UserType>

Returns

UserType | Promise<UserType>

Defined in

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


updateFromExternalUserData

updateFromExternalUserData(userData): UserID | Promise<UserID>

Parameters

Name Type
userData AuthProviderUserContract

Returns

UserID | Promise<UserID>

Inherited from

UserServiceContract.updateFromExternalUserData

Defined in

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

Clone this wiki locally