refactor(web): use oauth client instead of app auth client
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user