# Authentication token storage

**URL:** <https://forums.fusetools.com/t/authentication-token-storage/6181>\
**Category:** How-to Discussions\
**Created:** [December 6, 2017, 4:55am UTC](https://forums.fusetools.com/t/authentication-token-storage/6181 "2017-12-06T04:55:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vlad/32/473_2.png) [@Vlad](https://forums.fusetools.com/u/Vlad)\
**Post date:** [December 6, 2017, 4:55am UTC](https://forums.fusetools.com/t/authentication-token-storage/6181/1 "2017-12-06T04:55:57Z")

</div>

Hi, I’m wondering where I should store authentication tokens for my app. Should I just save them to a local file ([https://www.fusetools.com/docs/fuse/filesystem/filesystemmodule](https://www.fusetools.com/docs/fuse/filesystem/filesystemmodule)) or is there some better way to handle such things? I believe I’ve read in another thread that cookies are not persisted automatically ([https://www.fusetools.com/community/forums/bug\_reports/fetch\_always\_follows\_redirects\_but\_does\_not\_persis?page=1&highlight=2d307f2f-e32b-487e-8753-7e87a33435b9#post-2d307f2f-e32b-487e-8753-7e87a33435b9](https://www.fusetools.com/community/forums/bug_reports/fetch_always_follows_redirects_but_does_not_persis?page=1&highlight=2d307f2f-e32b-487e-8753-7e87a33435b9#post-2d307f2f-e32b-487e-8753-7e87a33435b9)) so I thought I’d check in to see if anything had changed since then.

Thanks,

Vlad

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [December 6, 2017, 8:24am UTC](https://forums.fusetools.com/t/authentication-token-storage/6181/2 "2017-12-06T08:24:04Z")

</div>

Yes, you should use either [FileSystem](https://www.fusetools.com/docs/fuse/filesystem/filesystemmodule) or if you fancy, [NSUserDefaults/SharedPreferences](https://github.com/bolav/fuse-usersettings).

---

<div class="post-metadata">

**Author:** ![Vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vlad/32/473_2.png) [@Vlad](https://forums.fusetools.com/u/Vlad)\
**Post date:** [December 7, 2017, 4:42am UTC](https://forums.fusetools.com/t/authentication-token-storage/6181/3 "2017-12-07T04:42:50Z")

</div>

Thanks very much Uldis!
