GitHub

DaffInMemoryRegisterService

Service

import { DaffInMemoryRegisterService } from '@daffodil/auth/driver/in-memory'

@Injectable()
class DaffInMemoryRegisterService extends DaffInMemoryDriverBase implements DaffRegisterServiceInterface {
  register(registration: DaffAccountRegistration): Observable<string>
  registerOnly(registration: DaffAccountRegistration): Observable<void>
}

() Methods

register
Observable

Registers an account for the specified customer and logs the customer in.

@param registration The account registration info. @return The authentication token.

Parameters
Parameterregistration: DaffAccountRegistration
Description
registerOnly
Observable

Registers an account for the specified customer but does not log the customer in.

@param registration The account registration info.

Parameters
Parameterregistration: DaffAccountRegistration
Description