()
| 119 | |
| 120 | /** True when a GitCode token is configured (no network check). */ |
| 121 | export function gitcodeIsAuthenticated(): boolean { |
| 122 | return getGitCodeToken() !== null; |
| 123 | } |
| 124 | |
| 125 | /** Fetch the authenticated GitCode username (`login`), or null when unavailable. */ |
| 126 | export async function gitcodeWhoami(): Promise<string | null> { |
no test coverage detected