Installation access tokens #24453
-
I know you need to generate a JWT token for your Github App in order to get an access token for an installation. However, when you do get an installation access token from
, is that token returned an OAuth2 access token or a JWT token? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @lostinpatterns, Thanks for being here! That is a great question, you’d need to download the key to your local machine. You’ll use this key to sign a JSON Web Token (JWT) and encode it using the |
Beta Was this translation helpful? Give feedback.
-
Keep getting this message {“message”:"‘Issued at’ claim (‘iat’) must be an Integer representing the time that the assertion was issued",“documentation_url”:“https://developer.github.com/v3”} I created the time using typescript new Date().getTime() the numbers are as follows: { |
Beta Was this translation helpful? Give feedback.
-
Realized my mistake, here is the JS script let iat = Math.round(Date.now() / 1000) Take these numbers and paste it in jwt.io |
Beta Was this translation helpful? Give feedback.
Realized my mistake, here is the JS script
let iat = Math.round(Date.now() / 1000)
let exp = iat + (9 * 60)
let s = iat + " : " + exp
alert (s)
Take these numbers and paste it in jwt.io