Use solid-file-client together with solid-auth-client



I am wondering how to use solid-file-client with an app already authenticated with solid-auth-client. Is it possible to pass over a session object, @jeffz?



Ah - Ok no need for passing an Object, the session is shared automagically…


Solid-auth-client is bundled with solid-file-client so you don’t need to call it explicitly. Just use solid-file-client’s popupLogin() or login() methods - those call solid-auth-client behind the scenes to perform the login. Once you’re logged in, you don’t need to specifically manage the session, your browser will remember it without you doing anything.


And yes, if you’ve already used’ solid-auth-client’s login() directly, the session will be recognized by solid-file-client automagically.