Skip to content

Commit c7ea4f1

Browse files
committed
feat(auth): update grant response structure
1 parent 05b45ac commit c7ea4f1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,10 +1693,7 @@ export type OAuthGrant = {
16931693
* Response type for listing user's OAuth grants.
16941694
* Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
16951695
*/
1696-
export type AuthOAuthGrantsResponse = RequestResult<{
1697-
/** Array of OAuth grants authorized by the user */
1698-
grants: OAuthGrant[]
1699-
}>
1696+
export type AuthOAuthGrantsResponse = RequestResult<OAuthGrant[]>
17001697

17011698
/**
17021699
* Response type for revoking an OAuth grant.
@@ -1755,7 +1752,7 @@ export interface AuthOAuthServerApi {
17551752
* Lists all OAuth grants that the authenticated user has authorized.
17561753
* Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
17571754
*
1758-
* @returns Array of OAuth grants with client information and granted scopes
1755+
* @returns Response with array of OAuth grants with client information and granted scopes
17591756
*/
17601757
listGrants(): Promise<AuthOAuthGrantsResponse>
17611758

0 commit comments

Comments
 (0)