Title: Retrieve token for frontend
Last modified: August 10, 2020

---

# Retrieve token for frontend

 *  [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/retrieve-token-for-frontend/)
 * Hi, I am building a service that will be secured using auth0 and would like to
   retrieve a token for that service when logging in. I will be interfacing with
   the service from a Vue application on the frontend but would like to use the 
   WordPress auth0 integration to handle logins. I have referenced [https://wordpress.org/support/topic/where-are-the-id-access-tokens-stored/](https://wordpress.org/support/topic/where-are-the-id-access-tokens-stored/)
   but still have questions about retrieving the token upon the WordPress login 
   and sharing it with the client. Any help would be appreciated.
 * Jim

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/retrieve-token-for-frontend/#post-13232610)
 * I think this may be in the spirit of [https://github.com/auth0/wp-auth0/issues/797](https://github.com/auth0/wp-auth0/issues/797)
   as well.
 *  Thread Starter [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * (@jer1ko)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/retrieve-token-for-frontend/#post-13233028)
 * I used the `auth0_authorize_url_params` filter to add the audience param to the
   request and then used the `auth0_user_login` hook to set a cookie with the token
   scoped for my service. Are there any better ways that I can share the token and
   avoid using the cookie?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Retrieve token for frontend’ is closed to new replies.

 * ![](https://ps.w.org/auth0/assets/icon-256x256.png?rev=3351758)
 * [Login by Auth0](https://wordpress.org/plugins/auth0/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auth0/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auth0/)
 * [Active Topics](https://wordpress.org/support/plugin/auth0/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auth0/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auth0/reviews/)

## Tags

 * [frontend](https://wordpress.org/support/topic-tag/frontend/)

 * 2 replies
 * 1 participant
 * Last reply from: [jer1ko](https://wordpress.org/support/users/jer1ko/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/retrieve-token-for-frontend/#post-13233028)
 * Status: not resolved