#1426·probot

Expiration time' claim ('exp') is too far in the future

Author: m-czernekCreated Nov 28, 2020Updated Jul 30, 2025
Labelsbug

Bug Report

Current Behavior Following current getting started guide, that is finishing the Configuring a GitHub App, results in an application that throws 401 Unauthorized on a new issuewith the ERROR (HttpError): 'Expiration time' claim ('exp') is too far in the future error

I used the npx binary as per the documentation, and chose the basic-ts typescript template.

javascript
import { Application } from 'probot' // eslint-disable-line no-unused-vars

export = (app: Application) => {
  app.on('issues.opened', async (context) => {
    const issueComment = context.issue({ body: 'Thanks for opening this issue!' })
    await context.github.issues.createComment(issueComment)
  })

Environment

  • Probot version(s): 10.9.5
  • Node/npm version: v14.14.0/6.14.8
  • OS: Fedora 32