@plentymarkets/shop-api / doLogin
Function: doLogin() ​
doLogin(
context
,params
):Promise
<Data
<UserChangeResponse
>>
Method doLogin - logs in as user with email and password
Parameters ​
• context: PlentysystemsIntegrationContext
• params: LoginParams
email: string - customer's email password: string - customer's password
Returns ​
Promise
<Data
<UserChangeResponse
>>
Remarks ​
Calls /rest/storefront/contact/login/ This method should be used when a customer wants to log in with email and password.
Example ​
ts
await useSdk().plentysystems.doLogin({ email: email, password: password});