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
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"
}