Skip to content

Commit d87e64e

Browse files
Merge pull request #35 from BunnyWay/strip-api-key
feat(cli/login): strip api key from browser history
2 parents 12bc714 + 55d7928 commit d87e64e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/public-adults-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bunny.net/cli": patch
3+
---
4+
5+
Strip API key from browser history after login callback

packages/cli/src/commands/auth/login.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const SUCCESS_HTML = `<!doctype html>
4343
<h1>Authenticated!</h1>
4444
<p>You can close this tab and return to the CLI.</p>
4545
</div>
46+
<script>history.replaceState(null, "", location.pathname)</script>
4647
</body>
4748
</html>`;
4849

0 commit comments

Comments
 (0)