mirror of
https://github.com/router-for-me/CLIProxyAPIPlus.git
synced 2026-04-13 01:34:18 +00:00
- Add cursor/filename.go for multi-account credential file naming - Include auth.ID in session and checkpoint keys for per-account isolation - Record authID in cursorSession, validate on resume to prevent cross-account access - Management API /cursor-auth-url supports ?label= for creating named accounts - Leverages existing conductor round-robin + failover framework Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
365 B
Go
17 lines
365 B
Go
package cursor
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// CredentialFileName returns the filename used to persist Cursor credentials.
|
|
// It uses the label as a suffix to disambiguate multiple accounts.
|
|
func CredentialFileName(label string) string {
|
|
label = strings.TrimSpace(label)
|
|
if label == "" {
|
|
return "cursor.json"
|
|
}
|
|
return fmt.Sprintf("cursor-%s.json", label)
|
|
}
|