Skip to content

Commit 75f071e

Browse files
cemalkilicmandarini
authored andcommitted
fix(auth): update types
1 parent e831647 commit 75f071e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/core/auth-js/src/GoTrueAdminApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,9 @@ export default class GoTrueAdminApi {
463463
*
464464
* This function should only be called on a server. Never expose your `service_role` key in the browser.
465465
*/
466-
private async _deleteOAuthClient(clientId: string): Promise<OAuthClientResponse> {
466+
private async _deleteOAuthClient(
467+
clientId: string
468+
): Promise<{ data: null; error: AuthError | null }> {
467469
try {
468470
await _request(
469471
this.fetch,

packages/core/auth-js/src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ export interface GoTrueAdminOAuthApi {
15801580
*
15811581
* This function should only be called on a server. Never expose your `service_role` key in the browser.
15821582
*/
1583-
deleteClient(clientId: string): Promise<OAuthClientResponse>
1583+
deleteClient(clientId: string): Promise<{ data: null; error: AuthError | null }>
15841584

15851585
/**
15861586
* Regenerates the secret for an OAuth client.

0 commit comments

Comments
 (0)