change public app name for oauth
This commit is contained in:
@@ -458,6 +458,10 @@ export async function checkOAuthConsent(params: URLSearchParams, token: string)
|
||||
return apiFetch<OAuthConsentCheckResponse>(`/oauth/consent/check?${query.toString()}`, {}, token);
|
||||
}
|
||||
|
||||
export async function fetchOAuthClientPublicInfo(clientId: string) {
|
||||
return apiFetch<{ clientId: string; name: string }>(`/oauth/clients/${encodeURIComponent(clientId)}/public`);
|
||||
}
|
||||
|
||||
export async function fetchUserOAuthConsents(userId: string, token: string) {
|
||||
return apiFetch<{ consents?: OAuthUserConsent[] }>(`/oauth/consents/users/${userId}`, {}, token);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user