Commit fcee67e3 authored by erio's avatar erio
Browse files

fix: remove remaining unused Sora variables causing TypeScript build failure

- Remove unused accessTokenInput ref from OAuthAuthorizationFlow
- Remove unused parsedSessionToken* computed and handleValidateSessionToken
- Prefix unused options parameter in useOpenAIOAuth
parent 155900e6
...@@ -630,7 +630,6 @@ const authCodeInput = ref('') ...@@ -630,7 +630,6 @@ const authCodeInput = ref('')
const sessionKeyInput = ref('') const sessionKeyInput = ref('')
const refreshTokenInput = ref('') const refreshTokenInput = ref('')
const sessionTokenInput = ref('') const sessionTokenInput = ref('')
const accessTokenInput = ref('')
const showHelpDialog = ref(false) const showHelpDialog = ref(false)
const oauthState = ref('') const oauthState = ref('')
const projectId = ref('') const projectId = ref('')
...@@ -657,10 +656,6 @@ const parsedRefreshTokenCount = computed(() => { ...@@ -657,10 +656,6 @@ const parsedRefreshTokenCount = computed(() => {
.filter((rt) => rt).length .filter((rt) => rt).length
}) })
const parsedSessionTokenCount = computed(() => 0)
const parsedSessionTokensText = computed(() => '')
// Watchers // Watchers
watch(inputMethod, (newVal) => { watch(inputMethod, (newVal) => {
emit('update:inputMethod', newVal) emit('update:inputMethod', newVal)
...@@ -732,12 +727,6 @@ const handleValidateRefreshToken = () => { ...@@ -732,12 +727,6 @@ const handleValidateRefreshToken = () => {
} }
} }
const handleValidateSessionToken = () => {
if (parsedSessionTokenCount.value > 0) {
emit('validate-session-token', parsedSessionTokensText.value)
}
}
// Expose methods and state // Expose methods and state
defineExpose({ defineExpose({
authCode: authCodeInput, authCode: authCodeInput,
......
...@@ -28,7 +28,7 @@ interface UseOpenAIOAuthOptions { ...@@ -28,7 +28,7 @@ interface UseOpenAIOAuthOptions {
platform?: OpenAIOAuthPlatform platform?: OpenAIOAuthPlatform
} }
export function useOpenAIOAuth(options?: UseOpenAIOAuthOptions) { export function useOpenAIOAuth(_options?: UseOpenAIOAuthOptions) {
const appStore = useAppStore() const appStore = useAppStore()
const endpointPrefix = '/admin/openai' const endpointPrefix = '/admin/openai'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment