import type { TokenType } from './TokenType'; /** * @type TokenResponse: * * @property access_token: Short term shopper JWT that can be used to access Shopper APIs. Valid for 30 minutes. A trusted agent shopper JWT is valid for 15 min. * * @property id_token: User ID token. Valid for 30 minutes. * * @property refresh_token: Long term refresh token that can be used to refresh an access token. Valid for 30 days. The refresh_token will not be returned for trusted agents JWTs. A JWT for trusted agents expires after 15 minutes and is not refreshable. When expired, then app must restart the authorization flow and make another request to the /trusted-agent/authorize endpoint. * * @property expires_in: Remaining access token expiry time, in seconds. * * @property refresh_token_expires_in: Remaining refresh token expiry time, in seconds. * * @property token_type: * * @property usid: The unique shopper ID. Returned when using the `client_credentials` grant type. * * @property customer_id: Customer\'s ID * * @property enc_user_id: MD5 Hashed B2C Commerce user ID in uppercase. * * @property idp_access_token: This is the access token that is returned from the IDP. The IDP access token is returned to be able to make calls into the IDP outside of SLAS. * - **Max Length:** 8192 * * @property idp_refresh_token: This is the refresh token that is returned from the IDP. The IDP refresh token is returned to be able to make calls into the IDP outside of SLAS. * - **Max Length:** 128 * * @property dnt: Do not track * - **Max Length:** 5 * */ export type TokenResponse = { access_token: string; id_token: string; refresh_token: string; expires_in: number; refresh_token_expires_in: number; token_type: TokenType; usid: string; customer_id: string; enc_user_id: string; idp_access_token: string; idp_refresh_token?: string; dnt?: string; } & { [key: string]: any; };