File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -407,15 +407,8 @@ async function getSolidFetchAndPodUrl(req) {
407407 throw new Error ( 'User not authenticated with Solid/OpenID' ) ;
408408 }
409409
410- const cached = req . session ?. solidCachedPodUrlWebId === openidId && req . session ?. solidCachedPodUrl ;
411- if ( cached ) {
412- const authenticatedFetch = await getSolidFetch ( req ) ;
413- logger . debug ( '[SolidStorage] Using cached Pod URL from session' , { openidId } ) ;
414- return { authenticatedFetch, podUrl : req . session . solidCachedPodUrl } ;
415- }
416-
417410 const authenticatedFetch = await getSolidFetch ( req ) ;
418- const podUrl = await getPodUrl ( openidId , authenticatedFetch ) ;
411+ const podUrl = req . session ?. solidCachedPodUrl ?? await getPodUrl ( openidId , authenticatedFetch ) ;
419412 if ( req . session ) {
420413 req . session . solidCachedPodUrl = podUrl ;
421414 req . session . solidCachedPodUrlWebId = openidId ;
You can’t perform that action at this time.
0 commit comments