refactor(web): use oauth client instead of app auth client

This commit is contained in:
Ali BARIN
2024-12-19 14:53:47 +00:00
parent 8c4b67e147
commit 8d5287d51e
23 changed files with 206 additions and 194 deletions

View File

@@ -4,9 +4,9 @@ import api from 'helpers/api';
export default function useCreateConnection(appKey) {
const mutation = useMutation({
mutationFn: async ({ appAuthClientId, formattedData }) => {
mutationFn: async ({ oauthClientId, formattedData }) => {
const { data } = await api.post(`/v1/apps/${appKey}/connections`, {
appAuthClientId,
oauthClientId,
formattedData,
});