Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/core/auth-js/src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3628,12 +3628,13 @@ export default class GoTrueClient {
return this._returnResult({ data: null, error: new AuthSessionMissingError() })
}

return await _request(this.fetch, 'DELETE', `${this.url}/user/oauth/grants`, {
await _request(this.fetch, 'DELETE', `${this.url}/user/oauth/grants`, {
headers: this.headers,
jwt: session.access_token,
query: { client_id: options.clientId },
xform: () => ({ data: {}, error: null }),
noResolveJson: true,
})
return { data: {}, error: null }
})
} catch (error) {
if (isAuthError(error)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/auth-js/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1691,8 +1691,8 @@ export type OAuthAuthorizationClient = {
export type OAuthAuthorizationDetails = {
/** The authorization ID */
authorization_id: string
/** Redirect URI - present if user already consented (can be used to trigger immediate redirect) */
redirect_uri?: string
/** Redirect URL - present if user already consented (can be used to trigger immediate redirect) */
redirect_url?: string
/** OAuth client requesting authorization */
client: OAuthAuthorizationClient
/** User object associated with the authorization */
Expand Down