Skip to content

Commit 33a7e47

Browse files
committed
Use globalFetch.
1 parent 2945427 commit 33a7e47

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/solid-auth-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default class SolidAuthClient extends EventEmitter {
7676
const session = await getSession(storage)
7777
if (session) {
7878
try {
79-
await WebIdOidc.logout(storage)
79+
await WebIdOidc.logout(storage, globalFetch)
8080
this.emit('logout')
8181
this.emit('session', null)
8282
} catch (err) {

src/webid-oidc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @flow
2-
/* global RequestInfo, Response, fetch */
2+
/* global RequestInfo, Response */
33
import * as authorization from 'auth-header'
44
import RelyingParty from '@solid/oidc-rp'
55
import PoPToken from '@solid/oidc-rp/lib/PoPToken'
@@ -55,7 +55,10 @@ export async function currentSession(
5555
}
5656
}
5757

58-
export async function logout(storage: AsyncStorage): Promise<void> {
58+
export async function logout(
59+
storage: AsyncStorage,
60+
fetch: Function
61+
): Promise<void> {
5962
const rp = await getStoredRp(storage)
6063
if (rp) {
6164
try {

0 commit comments

Comments
 (0)