File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 11// @flow
2- /* global RequestInfo, Response, fetch */
2+ /* global RequestInfo, Response */
33import * as authorization from 'auth-header'
44import RelyingParty from '@solid/oidc-rp'
55import 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 {
You can’t perform that action at this time.
0 commit comments