Skip to content

Releases: ivan-magda/swift-chatgpt-auth

Release list

1.0.0

Choose a tag to compare

@ivan-magda ivan-magda released this 21 Jul 14:48
9203a92

First public release of ChatGPTAuth.

ChatGPTAuth signs a Swift app in to ChatGPT and Codex with the device-authorization OAuth flow, then keeps a fresh bearer token through a self-refreshing credential source.

What it does

  • Runs the device flow end to end with ChatGPTDeviceLogin: you show a short code, the person approves it in a browser, and you get back a credential.
  • Hands out a fresh bearer per request with ChatGPTCredentialSource, an actor that runs one refresh at a time and commits each rotation before it uses it.
  • Bounds every vendor value before it becomes a header, and strips terminal escapes and secrets from remote diagnostics.
  • Lets you supply your own HTTP transport and token store. A URLSessionHTTPClient ships as the default.

Details

  • iOS 16, macOS 13, tvOS 16, watchOS 9, visionOS 1, and Linux. Swift 6.
  • No third-party runtime dependencies.
  • A deterministic test suite plus an opt-in live test, with CI on macOS and Linux.

Documentation: https://ivan-magda.github.io/swift-chatgpt-auth/documentation/chatgptauth/