Authentication

Mode implements the OAuth2 client credential grant flow to enable merchants to use our services.

Auth2 Client Credentials Grant Flow

The following image details how this flow works from the perspective of the client application.

666

When the merchant is onboarded. Mode we will create a client id and client secret the merchant should use to authenticate and communicate with our API.

Details on the API to authenticate requests can be found on the Authentication API Reference

Token Lifetime

Tokens can and should be reused for the entirety of their lifetime. Once a token expires the merchant will need to get a new one by following the steps above.
Mode may introduce refresh tokens to facilitate this process.