Fix the anthropic auth url
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
authURL = "https://claude.com/cai/oauth/authorize"
|
||||
authURL = "https://claude.ai/oauth/authorize"
|
||||
manualRedirect = "https://platform.claude.com/oauth/code/callback"
|
||||
)
|
||||
|
||||
@@ -169,7 +169,7 @@ func Login(ctx context.Context) (*Credential, error) {
|
||||
authCode = code
|
||||
isManual = false
|
||||
case code := <-stdinCh:
|
||||
authCode = code
|
||||
authCode = strings.SplitN(code, "#", 2)[0]
|
||||
isManual = true
|
||||
case <-timeout.C:
|
||||
return nil, fmt.Errorf("login timed out after 120 seconds")
|
||||
|
||||
Reference in New Issue
Block a user