Get Storefront authToken for Specific Customer
Request
The storefront channel ID associated with the storefront login session. Use 1 for your store’s default storefront channel.
The storefront channel ID associated with the storefront login session. Use 1 for your store’s default storefront channel.
Validates a Company user’s login credentials to create a storefront authToken that can be queried for future GraphQL requests.
Equivalent Storefront GraphQL API Mutation: login
The GraphQL API mutation also allows you to return a storefrontLoginToken. This retrieves a JWT, which can be passed to the BigCommerce Customer Login endpoint in order to log a customer in with a Stencil storefront session.
The login response also includes information related to the Company user, such as their name and their account’s internal identifiers.
Note: the resulting storefront authToken is tied to the Company user, and their assigned user role determines whether or not further requests are authorized. For example, if you generate an authToken for a user who does not have the create_address permission enabled, using the token to validate the GraphQL API addressCreate mutation will result in an error.
For a complete list of Company user permissions and their scopes, see Company Roles and Permissions.
With Storefront authToken only
With Storefront authToken and storefrontLoginToken
With Storefront authToken only
With Storefront authToken and storefrontLoginToken
The Unix timestamp indicating when the storefront authToken starts being valid.
The Unix timestamp indicating when the storefront authToken is no longer valid.