# No tutorials on how to get and use authorization headers from logged in users? (VueJS, Vue-Apollo, Hasura, Auth0)

**URL:** <https://community.auth0.com/t/no-tutorials-on-how-to-get-and-use-authorization-headers-from-logged-in-users-vuejs-vue-apollo-hasura-auth0/45288>\
**Category:** JWT.io\
**Tags:** graphql, vuejs, jwt, auth0\
**Created:** [June 25, 2020, 2:15pm UTC](https://community.auth0.com/t/no-tutorials-on-how-to-get-and-use-authorization-headers-from-logged-in-users-vuejs-vue-apollo-hasura-auth0/45288 "2020-06-25T14:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cigoler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cigoler/32/20382_2.png) [@cigoler](https://community.auth0.com/u/cigoler)\
**Post date:** [June 25, 2020, 2:15pm UTC](https://community.auth0.com/t/no-tutorials-on-how-to-get-and-use-authorization-headers-from-logged-in-users-vuejs-vue-apollo-hasura-auth0/45288/1 "2020-06-25T14:15:06Z")

</div>

I have a VueJS frontend, that connects via vue-apollo/Hasura/Graphql to a postgres database, anyway I can login and logout using Auth0 and it’s reflected back in my database and on the frontend. However I don’t have any authorization headers - and I can’t find any tutorials on this part - or more likely I suspect I’m misunderstanding something and looking in the wrong places.

I mean it seems like such a fundamental part of the application but all of the tutorials I’ve seen are manually copy and pasting the token sent with the callback url into the hasura console to test if its working and then essentially saying job done.

I also don’t know what best practices are - do I request a token as the page loads, when I click a button, etc… Any help is greatly appreciated. Sorry if this is old territory.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 26, 2020, 4:51pm UTC](https://community.auth0.com/t/no-tutorials-on-how-to-get-and-use-authorization-headers-from-logged-in-users-vuejs-vue-apollo-hasura-auth0/45288/3 "2020-06-26T16:51:30Z")

</div>

Hi @cigoler,

Welcome to the Community!

I don’t have much familiarity with apollo, but this blog shows how to set up a call with token verification in React + Apollo. Maybe this will help:

> **[Build Apps with GraphQL, React, and Apollo](https://auth0.com/blog/develop-modern-apps-with-react-graphql-apollo-and-add-authentication/#Secure-your-GraphQL-API-with-Auth0)**
>
> Learn how to build modern apps. Follow along to see how to build GraphQL API using resolvers and connect to SQLite database. React app fr...

Let me know!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 10, 2020, 8:51pm UTC](https://community.auth0.com/t/no-tutorials-on-how-to-get-and-use-authorization-headers-from-logged-in-users-vuejs-vue-apollo-hasura-auth0/45288/4 "2020-07-10T20:51:32Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
