summaryrefslogtreecommitdiff
path: root/web/source/settings/lib/query/oauth/index.ts
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-10-21 14:04:50 +0200
committerLibravatar GitHub <noreply@github.com>2024-10-21 14:04:50 +0200
commit8a93300ac43ffd70ca687d71ee8eefdb755e6a58 (patch)
tree4f091a3e8ad082738f65f5ab47a1be910bc94933 /web/source/settings/lib/query/oauth/index.ts
parent[chore]: Bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5 (#3469) (diff)
downloadgotosocial-8a93300ac43ffd70ca687d71ee8eefdb755e6a58.tar.xz
[feature] Add image descriptions for default avatar + header; don't allow editing default desc (#3473)v0.17.1
Diffstat (limited to 'web/source/settings/lib/query/oauth/index.ts')
-rw-r--r--web/source/settings/lib/query/oauth/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/source/settings/lib/query/oauth/index.ts b/web/source/settings/lib/query/oauth/index.ts
index f62a29596..e151b0aee 100644
--- a/web/source/settings/lib/query/oauth/index.ts
+++ b/web/source/settings/lib/query/oauth/index.ts
@@ -26,6 +26,7 @@ import {
authorize as oauthAuthorize,
} from "../../../redux/oauth";
import { RootState } from '../../../redux/store';
+import { Account } from '../../types/account';
export interface OauthTokenRequestBody {
client_id: string;
@@ -58,7 +59,7 @@ const SETTINGS_URL = (getSettingsURL());
// https://redux-toolkit.js.org/rtk-query/usage/customizing-queries#performing-multiple-requests-with-a-single-query
const extended = gtsApi.injectEndpoints({
endpoints: (build) => ({
- verifyCredentials: build.query<any, void>({
+ verifyCredentials: build.query<Account, void>({
providesTags: (_res, error) =>
error == undefined ? ["Auth"] : [],
async queryFn(_arg, api, _extraOpts, fetchWithBQ) {