# 从 localStorage 传递 token

**URL:** https://meta.discourse.org/t/pass-token-from-localstorage/84665
**Category:** SSO
**Created:** [2018年四月5日 18:55 UTC](https://meta.discourse.org/t/pass-token-from-localstorage/84665 "2018-04-05T18:55:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nopsled](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nopsled/32/120092_2.png) [@Nopsled](https://meta.discourse.org/u/Nopsled)
#### Post date: [2018年四月5日 18:55 UTC](https://meta.discourse.org/t/pass-token-from-localstorage/84665/1 "2018-04-05T18:55:25Z")

</div>

Hello,

Is there an easy way to pass a token from localStorage in the SSO request? I’m using token based authentication and I need to validate the user with the locally stored token.

If there’s not already a plugin, can you point me to where in the code I can modify the request to the SSO server to add that into the body (not a Ruby expert so would need some guidance there).

Thank you!

---

<div class="post-metadata">

### Author: ![Avkonst](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Avkonst](https://meta.discourse.org/u/Avkonst)
#### Post date: [2018年七月30日 08:38 UTC](https://meta.discourse.org/t/pass-token-from-localstorage/84665/2 "2018-07-30T08:38:01Z")

</div>

Is it users from Firebase? I have got this issue and do not understand how to accomplish this. Have you figured it out?
