You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Creates an installation access token](https://docs.github.com/en/rest/reference/apps#create-an-installation-access-token-for-an-app) that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account.
20
-
Installation tokens expire 1 hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.
20
+
[Creates an installation access token](https://docs.github.com/en/rest/reference/apps#create-an-installation-access-token-for-an-app) to make authenticated API requests.
21
+
22
+
Installation tokens expire **1 hour** from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.
21
23
22
24
You can use this access token to make pretty much any REST or GraphQL API call the app is authorized to make!
23
25
@@ -33,7 +35,7 @@ In order to use GitHub's [REST](https://docs.github.com/en/rest) or [GraphQL](ht
33
35
1. never (automatically) expire. They have an indefinite lifetime (or at least until you regenerate them)
34
36
1. cannot be revoked (they're only revoked when a new one is generated)
35
37
36
-
With an access token generated with a GitHub App you don't have to worry about the concerns above. These tokens have a limited scope and lifetime. Just make sure you handle the token safely (avoid leaking). In the worst case scenario, the token will expire in 1 hour from creation time.
38
+
With an access token generated with a GitHub App you don't have to worry about the concerns above. These tokens have a limited scope and lifetime. Just make sure you handle the token safely (avoid leaking). In the worst case scenario, the token will expire in**1 hour from creation time.**
37
39
38
40
## Installation
39
41
@@ -64,7 +66,7 @@ Compatible with [GitHub Enterprise Server](https://github.com/enterprise).
64
66
65
67
```text
66
68
NAME:
67
-
gh-token - Generate a GitHub App installation token
0 commit comments