()
| 163 | } |
| 164 | |
| 165 | func requireAuth() error { |
| 166 | if !authMgr.IsAuthenticated() { |
| 167 | return output.ErrAuth("not logged in — run `hey auth login` first") |
| 168 | } |
| 169 | return nil |
| 170 | } |
| 171 | |
| 172 | // migrateOldCredentials migrates credentials from the old config.json format |
| 173 | // to the new credential store (keyring or credentials.json). |