This commit is contained in:
Joel
2023-08-28 18:20:07 +08:00
parent a96399ee15
commit 4fa6b2c2bd
5 changed files with 21 additions and 4 deletions

View File

@ -31,3 +31,7 @@ export const fetchAppParams = async () => {
export const updateFeedback = async ({ url, body }: { url: string; body: Feedbacktype }) => {
return post(url, { body })
}
export const fetchAccessToken = async (appId: string) => {
return get('/passport') as Promise<{ access_token: string }>
}