Home / Companies / Replay / Blog / Post Details
Content Deep Dive

Debugging Github Auth

Blog post from Replay

Post Details
Company
Date Published
Author
Jason Laster
Word Count
894
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

Replay is developing a time-travel debugger for JavaScript, specifically targeting the challenge of intermittent browser test failures by working on a side project called Replay Visuals. This project, hosted on Vercel and backed by Supabase, aims to save snapshots from browser test runs and streamline the workflow for approving visual regressions. A significant challenge encountered was managing GitHub Check Runs, as they can only be handled via GitHub Apps rather than personal tokens. This necessitated the creation of a GitHub App to generate a JSON Web Token (JWT) and subsequently a token for the Check Run. The process involved overcoming hurdles with JWT creation, such as ensuring correct time calculations and avoiding expiration-related errors by setting an expiration 9 minutes in the future. Despite the availability of GitHub's Octokit library for authentication, the developers found it more effective to break the problem into smaller parts rather than relying on the library, suggesting that Octokit could enhance its setup process with better error messages and troubleshooting documentation.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
AI Coding Assistant 2 86 30 16 +56%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.