প্রকল্প সম্পর্কে

The ghtkn-go-sdk is a Go library designed to simplify the creation and management of GitHub User Access Tokens for GitHub Apps. It provides a clean interface for retrieving tokens without blocking background processes, ensuring seamless integration into applications that require authenticated GitHub API access. The SDK supports silent token refresh when using the agent backend, reducing the need for repeated user interaction. For scenarios requiring initial authentication, developers can explicitly invoke the Device Flow via the Client.Auth method, which is intended for interactive contexts only. The library integrates with Go's standard slog package for logging, allowing developers to customize log output using popular logging frameworks like logrus, zap, and zerolog through handler implementations. Examples are provided for common use cases, including basic token retrieval, customizing browser launch behavior, and configuring device code display.