1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2023-07-12 22:34:50 +02:00
parent 0e64350df8
commit f2b275d815
5 changed files with 329 additions and 338 deletions

View File

@@ -25,10 +25,7 @@ const useAppsQuery = (
type MutationVarsApps = { domain: string; scopes: string[] }
export const redirectUri = AuthSession.makeRedirectUri({
native: 'tooot://instance-auth',
useProxy: false
})
export const redirectUri = AuthSession.makeRedirectUri({ native: 'tooot://instance-auth' })
const mutationFunctionApps = async ({ domain, scopes }: MutationVarsApps) => {
return apiGeneral<Mastodon.Apps>({
method: 'post',
@@ -49,4 +46,5 @@ const useAppsMutation = (
return useMutation(mutationFunctionApps, options)
}
export { useAppsQuery, useAppsMutation }
export { useAppsMutation, useAppsQuery }