@plentymarkets/shop-api / doLoginAsGuest
Function: doLoginAsGuest() ​
doLoginAsGuest(
context
,params
):Promise
<Data
<null
>>
Method doLoginAsGuest - logs in as a guest.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: LoginAsGuestParams
email: string - customer's email
Returns ​
Promise
<Data
<null
>>
Remarks ​
- Calls /rest/storefront/guest/
- This method should be used when a customer wants to log in as a guest.
Example ​
ts
await useSdk().plentysystems.doLoginAsGuest({email: 'guest.plenty@example.com'});