Files
openai-github-copilot/scripts/Find-Token.ps1
2024-03-15 01:21:48 +01:00

19 lines
465 B
PowerShell

$hostsFile = "$env:LOCALAPPDATA\github-copilot\hosts.json"
$tokenFile = "$env:HOMEDRIVE$env:HOMEPATH\.copilot-cli-access-token"
if (Test-Path $hostsFile) {
Write-Output "Found hosts.json:"
Get-Content $hostsFile
} else {
Write-Output "hosts.json not found."
}
Write-Output ""
if (Test-Path $tokenFile) {
Write-Output "Found .copilot-cli-access-token:"
Get-Content $tokenFile
} else {
Write-Output ".copilot-cli-access-token not found."
}