Appearance
login ​
Definition ​
Login user to shopware instance.
Signature ​
ts
export async function login(
parameters: { username?: string; password?: string } = {},
contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<ContextTokenResponse>
Parameters ​
Name | Type | Description |
---|---|---|
parameters | { username?: string; password?: string } | username and password |
contextInstance | ShopwareApiInstance | ShopwareApiInstance |
Return type ​
ts
Promise<ContextTokenResponse>
Properties ​
Name | Type | Description |
---|
Usage example ​
WARNING
Example is generated automatically. Sometimes it's required to be adjusted to your needs.