Skip to content

auth.UserService

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

Class: UserService

auth.UserService

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new UserService(): UserService

Returns

UserService

Properties

users

Private users: ApplicationUser[]

Defined in

packages/auth/examples/services/user.service.ts:10

Methods

createFromExternalUserData

createFromExternalUserData(userData): UserID

Parameters

Name Type
userData AuthProviderUserContract

Returns

UserID

Implementation of

UserServiceContract.createFromExternalUserData

Defined in

packages/auth/examples/services/user.service.ts:44


getOneByExternalId

getOneByExternalId(id): null | ApplicationUser

Parameters

Name Type
id string

Returns

null | ApplicationUser

Implementation of

UserServiceContract.getOneByExternalId

Defined in

packages/auth/examples/services/user.service.ts:31


getOneById

getOneById(id): null | ApplicationUser

Parameters

Name Type
id string

Returns

null | ApplicationUser

Implementation of

UserServiceContract.getOneById

Defined in

packages/auth/examples/services/user.service.ts:27


getOneByUsernameAndPassword

getOneByUsernameAndPassword(username, password): null | ApplicationUser

Parameters

Name Type
username string
password string

Returns

null | ApplicationUser

Implementation of

UserServiceContract.getOneByUsernameAndPassword

Defined in

packages/auth/examples/services/user.service.ts:35


updateFromExternalUserData

updateFromExternalUserData(userData): UserID

Parameters

Name Type
userData AuthProviderUserContract

Returns

UserID

Implementation of

UserServiceContract.updateFromExternalUserData

Defined in

packages/auth/examples/services/user.service.ts:51

Clone this wiki locally