Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 817 Bytes

File metadata and controls

30 lines (23 loc) · 817 Bytes

OAuthTokenEndpointRequest

Supported Types

models.OAuthTokenEndpointRequestAuthorizationCode

const value: models.OAuthTokenEndpointRequestAuthorizationCode = {
  grantType: "authorization_code",
  code: "mid_authorization_code_abcdef123456789",
  redirectUri: "https://myapp.com/callback",
  clientId: "mid_client_abcdef123456789",
  clientSecret: "mid_secret_abcdef123456789",
  codeVerifier: "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
};

models.OAuthTokenEndpointRequestRefreshToken

const value: models.OAuthTokenEndpointRequestRefreshToken = {
  grantType: "refresh_token",
  refreshToken: "mid_rt_abcdef123456789",
  clientId: "mid_client_abcdef123456789",
  clientSecret: "mid_secret_abcdef123456789",
  scope: "transactions.read invoices.read",
};