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 373fa20
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/integrations/components/connect-service-account-modal/client-credential-account-modal.tsx
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,8 @@ const FALLBACK_ERROR_MESSAGE = "We couldn't save this credential. Try again in a
45
45
functionmessageForClientCredentialError(
46
46
err: unknown,
47
47
descriptor: ClientCredentialAccountDescriptor,
48
-
requiredFields: ClientCredentialAccountField[]
48
+
requiredFields: ClientCredentialAccountField[],
49
+
fallbackMessage=FALLBACK_ERROR_MESSAGE
49
50
): string{
50
51
if(isApiClientError(err)&&err.code){
51
52
// Names the fields the *selected* auth method needed, so a JWT failure
@@ -68,10 +69,10 @@ function messageForClientCredentialError(
68
69
case'duplicate_display_name':
69
70
return'A credential with that name already exists in this workspace.'
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/integrations/components/connect-service-account-modal/token-service-account-modal.tsx
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -167,9 +167,11 @@ function TokenServiceAccountModalForm({
0 commit comments