Skip to content

Commit 1771f13

Browse files
committed
🏷️ Merge ServerToServerToken
1 parent dc12e0a commit 1771f13

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/types.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ export type Route = OctokitTypes.Route;
1414

1515
/** GitHub App server-to-server token
1616
* @see https://docs.github.com/en/developers/apps/authenticating-with-github-apps#authenticating-as-an-installation */
17-
export type ActionToken = `ghs_${string}`;
18-
/** GitHub App server-to-server token
19-
* @see https://docs.github.com/en/developers/apps/authenticating-with-github-apps#authenticating-as-an-installation */
20-
export type InstallallationToken = `ghs_${string}`;
17+
export type ServerToServerToken = `ghs_${string}`;
2118
export type InstallallationTokenV1 = `v1.${string}`;
2219
/** Your app can make API requests on behalf of a user. API requests made by an
2320
* app on behalf of a user will be attributed to that user. For example, if your
@@ -35,7 +32,8 @@ export type InstallationUserToServerToken = `ghu_${string}`;
3532
* @see https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-json-web-token-jwt-for-a-github-app
3633
*/
3734
export type JWT = `${string}.${string}.${string}`;
38-
/** This access token allows you to make requests to the API on a behalf of a user.
35+
/** This access token allows you to make requests to the API on a behalf of a
36+
* user.
3937
*
4038
* @see https://docs.github.com/en/developers/apps/authorizing-oauth-apps
4139
*/
@@ -50,8 +48,7 @@ export type OAuthToken = `gho_${string}`;
5048
export type PersonalAccessToken = `ghp_${string}`;
5149

5250
export type Token =
53-
| ActionToken
54-
| InstallallationToken
51+
| ServerToServerToken
5552
| InstallallationTokenV1
5653
| InstallationUserToServerToken
5754
| JWT

0 commit comments

Comments
 (0)