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
This commit is contained in:
@@ -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(() => {
|
|||||||
.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 = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
|||||||
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'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user