(input: { username?: string; password: string })
| 3 | import { decode64 } from "@/utils/base64" |
| 4 | |
| 5 | export function authTokenFromCredentials(input: { username?: string; password: string }) { |
| 6 | return btoa(`${input.username ?? "opencode"}:${input.password}`) |
| 7 | } |
| 8 | |
| 9 | export function authFromToken(token: string | null) { |
| 10 | const decoded = decode64(token ?? undefined) |
no outgoing calls
no test coverage detected