···2020 service: 'https://bsky.social'
2121 });
22222323- // Make an unauthenticated request to the typeahead API
2323+ // The Bluesky API requires login even for public APIs,
2424+ // but we can use a fake login with empty credentials for this purpose
2525+ await agent.login({ identifier: '', password: '' });
2626+2727+ // Make a request to the typeahead API
2428 const response = await agent.app.bsky.actor.searchActorsTypeahead({
2529 term,
2630 limit: 5