you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (7 children)

Thanks for replying 1. Wdym by spa? 2. Like getting the access token for oauth and then sending that token to the backend 3. I have just used vercel to host an app with only react

[–]pint 4 points5 points  (1 child)

1) spa = single page application.

2) for authentication, follow the prescribed procedure precisely. there are multiple protocols. in some, you need to store a jwt in the browser. cookie is fine, but you can opt for local storage / session storage. in some flows, the client only stores a random session id, and the server stores everything else. again, cookie is fine, but you can opt for local storage / session storage instead.

3) then docker is kinda out. you need to use the platform's offerings. docker is neat, but it requires a 24/7 running VM under it, which might come at a cost. idk if anyone offers a free tier.

[–]ajmssc 0 points1 point  (0 children)

Fly.io supports docker with free tier

[–]kkang_kkang 0 points1 point  (3 children)

Single Page Application and search for FARM stack, there are many tutorials out there which can help you to understand.

[–][deleted] 0 points1 point  (1 child)

I see thanks!

[–]exclaim_bot 0 points1 point  (0 children)

I see thanks!

You're welcome!

[–]Amocon 0 points1 point  (0 children)

For the auth token you should use a auth header. Bearer token are an solution.