AuthenticationService

Namespace

IO\Services

Properties
Type Name Description

ContactAuthenticationRepositoryContract

$contactAuthRepository

SessionStorageService

$sessionStorage

CustomerService

$customerService

string

$pluginNamespace

Methods
public __construct($contactAuthRepository, $sessionStorage)

AuthenticationService constructor.

Parameters

Type

Name

Description

ContactAuthenticationRepositoryContract

$contactAuthRepository

SessionStorageService

$sessionStorage

public login($email, $password):int

Perform the login with email and password

Parameters

Type

Name

Description

string

$email

string

$password

public loginWithContactId($contactId, $password)

Perform the login with customer ID and password

Parameters

Type

Name

Description

int

$contactId

string

$password

public logout()

Log out the customer

public checkPassword($password):bool
Parameters

Type

Name

Description

string

$password

public isLoggedIn():bool