mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
Refactor SkillSetupWizard API call for OAuth URL retrieval
- Updated the API endpoint in SkillSetupWizard to remove the unnecessary responseType parameter, streamlining the OAuth URL request. - This change enhances the clarity of the API call while maintaining functionality for OAuth integration.
This commit is contained in:
@@ -148,7 +148,7 @@ export default function SkillSetupWizard({
|
||||
try {
|
||||
// Call backend to get the real OAuth authorization URL
|
||||
const data = await apiClient.get<{ oauthUrl?: string }>(
|
||||
`/auth/${oauth.provider}/connect?responseType=json&skillId=${skillId}`,
|
||||
`/auth/${oauth.provider}/connect?skillId=${skillId}`,
|
||||
);
|
||||
|
||||
if (!data.oauthUrl) {
|
||||
|
||||
Reference in New Issue
Block a user