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

**URL:** <https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547>\
**Category:** Solid App Development FAQs\
**Created:** [March 26, 2019, 9:11am UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547 "2019-03-26T09:11:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yova](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/yova/32/424_2.png) [@yova](https://forum.solidproject.org/u/yova)\
**Post date:** [March 26, 2019, 9:11am UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547/1 "2019-03-26T09:11:17Z")

</div>

Heyho,

I am wondering how to use [solid-file-client](https://github.com/jeff-zucker/solid-file-client) with an app already authenticated with solid-auth-client. Is it possible to pass over a `session` object, @jeffz?

Thanx!

---

<div class="post-metadata">

**Author:** ![yova](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/yova/32/424_2.png) [@yova](https://forum.solidproject.org/u/yova)\
**Post date:** [March 26, 2019, 9:42am UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547/2 "2019-03-26T09:42:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [March 26, 2019, 10:29am UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547/3 "2019-03-26T10:29:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [March 26, 2019, 10:32am UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547/4 "2019-03-26T10:32:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![okilele](https://avatars.discourse-cdn.com/v4/letter/o/b38774/32.png) [@okilele](https://forum.solidproject.org/u/okilele)\
**Post date:** [November 14, 2019, 8:06am UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547/5 "2019-11-14T08:06:33Z")

</div>

“the session will be recognized by solid-file-client automagically”: True, but how to “delete” the session to be able to test the solid-auth-client ?

---

<div class="post-metadata">

**Author:** ![happybeing](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/happybeing/32/59_2.png) [@happybeing](https://forum.solidproject.org/u/happybeing)\
**Post date:** [November 14, 2019, 10:45am UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547/6 "2019-11-14T10:45:52Z")

</div>

You can use the browser Dev tools to delete some or all of the things saved in browser local storage.

solid-auth-client does the session in local storage and it’s easy to identify (it’s called session or something similar), so you can click on it and delete just that if you want, although generally I delete everything!

---

<div class="post-metadata">

**Author:** ![okilele](https://avatars.discourse-cdn.com/v4/letter/o/b38774/32.png) [@okilele](https://forum.solidproject.org/u/okilele)\
**Post date:** [November 14, 2019, 6:23pm UTC](https://forum.solidproject.org/t/use-solid-file-client-together-with-solid-auth-client/1547/7 "2019-11-14T18:23:36Z")

</div>

This works (of course …)  
Thanks a lot from a newbie !
