provider OAuth POST /oauth/token
@utdk/linear /oauth/token
Exchange authorization code for access token
Exchange an OAuth 2.0 authorization code for an access token and refresh token. Used in the OAuth authorization code flow.

Try it

Authentication
Configure credentials for Linear API
exchangeoauthtoken
POST/oauth/token
Exchange an OAuth 2.0 authorization code for an access token and refresh token. Used in the OAuth authorization code flow.

Input

required

Authorization code received from the OAuth callback

required

Redirect URI used in the authorization request

required

Application client ID

required

Application client secret

required

OAuth grant type

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import linear from '@utdk/linear';

await linear.exchangeoauthtoken()