OAuthCredential

Updated at:

Parameter

Type

Description

Example

object

An OAuth credential to authenticate with a third-party code hosting platform.

token

string

The access token used to access a third-party code hosting platform.

4e84246b6b3962cd3d207aad1ea2f911

type

string

The credential type.

bearer

scope

string

The permissions granted by the credential.

user_info projects pull_requests hook gists emails

expiration

integer

The timestamp when the credential expires. A value of -1 indicates the credential does not expire.

1716263324603

createdTime

integer

The creation timestamp of the credential.

1716176924603

refreshToken

string

The refresh token used to obtain a new access token.

4d77bfae284770d94ebeed6b0199ebfd65e3943ba4f1e44dc36d792a93ba0d13