@plentymarkets/shop-api / doLogin
Function: doLogin() ​
doLogin(
context
,params
):Promise
<Data
<UserChangeResponse
>>
Defined in: api/doLogin/index.ts:23
Method doLogin - logs in as user with email and password
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
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});