Skip to content

Commit ee04fdc

Browse files
author
aadamgough
committed
component fix
1 parent 5033042 commit ee04fdc

File tree

2 files changed

+6
-4
lines changed
  • apps/sim
    • app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/credential-selector/components
    • lib/oauth

2 files changed

+6
-4
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/credential-selector/components/oauth-required-modal.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { useState } from 'react'
44
import { Check } from 'lucide-react'
55
import {
66
Button,
7+
Input,
8+
Label,
79
Modal,
810
ModalContent,
911
ModalDescription,
@@ -399,7 +401,7 @@ export function OAuthRequiredModal({
399401
id='snowflake-account-url'
400402
placeholder='xy12345.us-east-1.snowflakecomputing.com'
401403
value={snowflakeAccountUrl}
402-
onChange={(e) => {
404+
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
403405
setSnowflakeAccountUrl(e.target.value)
404406
setAccountUrlError('')
405407
}}
@@ -421,7 +423,7 @@ export function OAuthRequiredModal({
421423
type='text'
422424
placeholder='Enter OAuth Client ID'
423425
value={snowflakeClientId}
424-
onChange={(e) => {
426+
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
425427
setSnowflakeClientId(e.target.value)
426428
setClientIdError('')
427429
}}
@@ -442,7 +444,7 @@ export function OAuthRequiredModal({
442444
type='password'
443445
placeholder='Enter OAuth Client Secret'
444446
value={snowflakeClientSecret}
445-
onChange={(e) => {
447+
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
446448
setSnowflakeClientSecret(e.target.value)
447449
setClientSecretError('')
448450
}}

apps/sim/lib/oauth/oauth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ export async function refreshOAuthToken(
13501350
const { headers, bodyParams } = buildAuthRequest(config, refreshToken)
13511351

13521352
// Refresh the token
1353-
const response = await fetch(tokenEndpoint, {
1353+
const response = await fetch(config.tokenEndpoint, {
13541354
method: 'POST',
13551355
headers,
13561356
body: new URLSearchParams(bodyParams).toString(),

0 commit comments

Comments
 (0)