mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
component fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
|
||||
import { useState } from 'react'
|
||||
import { Check } from 'lucide-react'
|
||||
import { useState } from 'react'
|
||||
import { Button, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from '@/components/emcn'
|
||||
import { client } from '@/lib/auth/auth-client'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
parseProvider,
|
||||
} from '@/lib/oauth'
|
||||
|
||||
|
||||
const logger = createLogger('OAuthRequiredModal')
|
||||
|
||||
export interface OAuthRequiredModalProps {
|
||||
|
||||
@@ -1572,7 +1572,7 @@ export async function refreshOAuthToken(
|
||||
const { headers, bodyParams } = buildAuthRequest(config, refreshToken)
|
||||
|
||||
// Refresh the token
|
||||
const response = await fetch(tokenEndpoint, {
|
||||
const response = await fetch(config.tokenEndpoint, {
|
||||
method: 'POST',
|
||||
headers,
|
||||
body: new URLSearchParams(bodyParams).toString(),
|
||||
|
||||
Reference in New Issue
Block a user