Increasing Expiration of github app access token #120382
Replies: 2 comments 1 reply
-
Hello @alitariq4589 From what I read and know, we can't change or configure the expiration app token generated by OAuth. On the other hand, you should find some GHA to achieve the refresh and store a new one. I hope this helps |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello all,
I have created my public github app for clients to use and I have set up everything (from fetching code from GitHub to getting access token) using this documentation.
The only problem I am facing is that the default expiration of the github app token is 28800 seconds (which is 8 hours). I understand that there is a refresh token which I receive along with token with which I can automate the process of refreshing the token before 8 hours. But isn't there a convenient process by which I can simply set a longer expiry duration at the time of generating the token?
Edit: It would be great if there is a parameter by which we can mention a desirable expiration date instead of default 8 hours fixed by github.
Any help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions