interface AnonymousGrantOptions {
    anonymousId?: string;
    scopes?: string[];
}

Properties

anonymousId?: string

If you specify this, you need to be sure that the value does not already exist as an anonymous customer id in the commercetools system under your project key. If it does, an error will be thrown when trying to create the access token.

scopes?: string[]

The scopes of the anonymous customer must be less than or equal to the scopes of the client API key (ideally, less). If you don't specify the scopes using this property, then the code will check for the scopes defined on CommercetoolsAuthConfig.customerScopes. If scopes aren't defined there either, than an error will be thrown when a call is made to CommercetoolsAuth.getAnonymousGrant

Generated using TypeDoc