# Quickstarts not connecting the dot

**URL:** <https://community.auth0.com/t/quickstarts-not-connecting-the-dot/124185>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [January 4, 2024, 7:16pm UTC](https://community.auth0.com/t/quickstarts-not-connecting-the-dot/124185 "2024-01-04T19:16:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![noah-milliken](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noah-milliken/32/53672_2.png) [@noah-milliken](https://community.auth0.com/u/noah-milliken)\
**Post date:** [January 4, 2024, 7:17pm UTC](https://community.auth0.com/t/quickstarts-not-connecting-the-dot/124185/1 "2024-01-04T19:17:00Z")

</div>

Hey therem

i am a relatively new developer and i am trying to add authentication to my SPA(React.js) + node.js app. I am struggling to get the authentication flow sorted out. The quoick start seems o make is as east as matching auth token with the HTTP request sent to the back end. This is not working in my app. I noticed that in the hello-world spa and matching node server that there is an apiServerUrl.js file and an external-api-service.js file. this is not mentioned or references tin the documentation. or if it is i didn’t see it.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 5, 2024, 12:27am UTC](https://community.auth0.com/t/quickstarts-not-connecting-the-dot/124185/3 "2024-01-05T00:27:07Z")

</div>

Hello @noah-milliken welcome to the community!

> [@noah-milliken](#):
>
> I noticed that in the hello-world spa and matching node server that there is an apiServerUrl.js file and an external-api-service.js file. this is not mentioned or references tin the documentation. or if it is i didn’t see it.

I’m not sure exactly which quickstart/guide you are working off of but I totally understand the feeling of trying to connect the dots… there’s a lot of them!

It might be worth looking at [this guide](https://developer.auth0.com/resources/guides/spa/react/basic-authentication#integrate-react-with-an-api-server) as it let’s you choose a backend of your choice - Also, our [react sample](https://github.com/auth0-samples/auth0-react-samples/blob/master/Sample-01/api-server.js) has a bare bones example of a working React frontend + Node API for reference.

---

<div class="post-metadata">

**Author:** ![noah-milliken](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noah-milliken/32/53672_2.png) [@noah-milliken](https://community.auth0.com/u/noah-milliken)\
**Post date:** [January 5, 2024, 4:08pm UTC](https://community.auth0.com/t/quickstarts-not-connecting-the-dot/124185/4 "2024-01-05T16:08:37Z")

</div>

Hi @ty.frith. Tank you for the link. I have followed a few different quick starts. What I am struggling with is the implementation of the bearer token being passed to my backend. It seems like the quick start is authenticating the SPA fine and also adding the auth functionality to my server, which I get. But there is almost no mention of the bearer token being attached to the headers. or if it is its very vague. If i am just supposed to know that or its out of Okta’s domain, that fine. But it feels unclear.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 5, 2024, 9:34pm UTC](https://community.auth0.com/t/quickstarts-not-connecting-the-dot/124185/5 "2024-01-05T21:34:52Z")

</div>

No problem, happy to help!

> [@noah-milliken](#):
>
> It seems like the quick start is authenticating the SPA fine and also adding the auth functionality to my server, which I get.

This is a great start!

> [@noah-milliken](#):
>
> But there is almost no mention of the bearer token being attached to the headers. or if it is its very vague. If i am just supposed to know that or its out of Okta’s domain, that fine. But it feels unclear.

It varies depending on the SDK, but at the end of the day it’s really just [using an access token](https://auth0.com/docs/secure/tokens/access-tokens/use-access-tokens) - This is done by including the token as a bearer credential in an HTTP authorization header. For example, using `fetch` in node.js:

> <https://github.com/auth0-samples/auth0-react-samples/blob/decb8f9fb3a22e7a71796035e0f42fffc2451642/Sample-01/src/views/ExternalApi.js#L61>

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 19, 2024, 9:35pm UTC](https://community.auth0.com/t/quickstarts-not-connecting-the-dot/124185/6 "2024-01-19T21:35:35Z")

</div>

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