Authentication

Log in using the code received after OAuth authorization redirect

post/auth/login

Request

  • Base URL: https://musicfun.it-incubator.app/api/1.0
  • URL: https://musicfun.it-incubator.app/api/1.0/auth/login
  • Auth: API key in header api-key

Request body

codestring required

Authorization code received from OAuth server after redirect

redirectUristring required

Specify the same redirect URI used in the initial OAuth server request

accessTokenTTLstring

Access token lifetime (default "3m"); must be a string like "60s", "3m", "2h", or "1d"

rememberMeboolean required

Refresh token lifetime: if true, 30 days; if false, 30 minutes. accessTokenTTL must not exceed the refresh token lifetime

Example request

{
  "redirectUri": "http://localhost:3000/oauth2/callback",
  "accessTokenTTL": "3m"
}

Response

OK: Token pair retrieved successfully

refreshTokenstring required
accessTokenstring required

Changes

No recorded changes to this operation across all 1 revision of this API.