fix anthropic console auth (#2049)

This commit is contained in:
Dax 2025-08-18 17:12:21 -04:00 committed by GitHub
parent 5d12cadba7
commit f19586cebd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 121 additions and 24 deletions

View file

@ -32,12 +32,16 @@ export interface Hooks {
| {
method: "auto"
callback(): Promise<
| {
| ({
type: "success"
refresh: string
access: string
expires: number
}
} & (
| {
refresh: string
access: string
expires: number
}
| { key: string }
))
| {
type: "failed"
}
@ -46,12 +50,16 @@ export interface Hooks {
| {
method: "code"
callback(code: string): Promise<
| {
| ({
type: "success"
refresh: string
access: string
expires: number
}
} & (
| {
refresh: string
access: string
expires: number
}
| { key: string }
))
| {
type: "failed"
}