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


#1

Heyho,

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?

Thanx!


#2

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


#3

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.


#4

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