Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit a1a6b12

Browse files
committed
Add duplicate login prompt
1 parent 4b7db25 commit a1a6b12

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • crates/cursor-core/src/auth

crates/cursor-core/src/auth/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ pub async fn sign_in() {
6161
if storage.get(AUTH_TOKEN_KEY).is_some() {
6262
// If there is already an authentication token, it means that the user has logged in
6363
// and does not need to log in again.
64+
context
65+
.show_information_message("You have already logged in.", js_sys::Array::new())
66+
.await;
6467
return;
6568
}
6669

0 commit comments

Comments
 (0)