You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd5ed4d
Browse filesBrowse the repository at this point in the historyBrowse files
it.effect("shows a fixed reason when browser login fails and logs the SDK cause",()=>{
234
+
constwarnings: string[]=[];
235
+
returnEffect.gen(function*(){
236
+
constsdkMessage=
237
+
"Login succeeded, but creating an SDK API key failed: [permission_denied] user API keys are disabled for this team (your team's settings may restrict user API keys — ask a team admin, or pass an existing API key directly)";
// The SDK has no code distinguishing these failures, so classify by its fixed message prefixes.
27
+
constloginFailureDetail=(cause: unknown)=>{
28
+
if(isCursorSdkError(cause,"CursorSdkError")){
29
+
if(cause.message.startsWith("Login succeeded, but creating an SDK API key failed")){
30
+
return"Cursor signed you in but could not create an API key. Your team's settings may restrict API keys: ask a team admin, or add CURSOR_API_KEY in provider settings.";
31
+
}
32
+
if(cause.message.startsWith("Login failed or timed out")){
33
+
return"Cursor sign-in failed or timed out. Check that this machine can reach Cursor, then start sign-in again.";
0 commit comments