Skip to content

auth.Class.UserService

Sclable CI edited this page Oct 7, 2024 · 7 revisions

@sclable/nestjs-libs / auth / UserService

Class: UserService

Implements

Constructors

new UserService()

new UserService(): UserService

Returns

UserService

Methods

createFromExternalUserData()

createFromExternalUserData(userData): UserID

Parameters

userData: AuthProviderUserContract

Returns

UserID

Implementation of

UserServiceContract.createFromExternalUserData

Defined in

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


getOneByExternalId()

getOneByExternalId(id): null | ApplicationUser

Parameters

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

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

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

userData: AuthProviderUserContract

Returns

UserID

Implementation of

UserServiceContract.updateFromExternalUserData

Defined in

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

Clone this wiki locally