()
| 169 | |
| 170 | /** Returns true when the user has valid Claude OAuth credentials. */ |
| 171 | export async function isSignedIn(): Promise<boolean> { |
| 172 | try { |
| 173 | await prepareApiRequest() |
| 174 | return true |
| 175 | } catch { |
| 176 | return false |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | export function getCodeWebUrl(): string { |
| 181 | return `${getOauthConfig().CLAUDE_AI_ORIGIN}/code` |
no test coverage detected