- Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
The auth.logout() is not sending the token to the Solid server which we need for identifying the user for proper logout.
The code in question is here:
exportasyncfunctionlogout(storage: AsyncStorage,fetch: Function): Promise<void>{constrp=awaitgetStoredRp(storage)if(rp){try{// First log out from the IDPawaitrp.logout()// Then, log out from the RPtry{awaitfetch('/.well-known/solid/logout',{credentials: 'include'})}catch(e){// Ignore errors for when we are not on a Solid pod// But tell users it is harmless because they will see the GET failure in the consoleconsole.info("Couldn't find /.well-known/solid/logout, this is harmless.")}}catch(err){console.warn('Error logging out of the WebID-OIDC session')console.error(err)}}}the rp.logout() does hit the IDP correctly, but without credentials, so the next call in this code to then use .well-known/solid/logout is not called as the IDP call returns a 401.
Any idea why rp.logout() is not including credentials?
angelo-v
Metadata
Metadata
Assignees
Labels
No labels