mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-02 20:40:52 +08:00
17 lines
376 B
Go
17 lines
376 B
Go
package antigravity
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// CredentialFileName returns the filename used to persist Antigravity credentials.
|
|
// It uses the email as a suffix to disambiguate accounts.
|
|
func CredentialFileName(email string) string {
|
|
email = strings.TrimSpace(email)
|
|
if email == "" {
|
|
return "antigravity.json"
|
|
}
|
|
return fmt.Sprintf("antigravity-%s.json", email)
|
|
}
|