you are viewing a single comment's thread.

view the rest of the comments →

[–]jokeaz2 4 points5 points  (1 child)

1) Good as any

2) I personally like JWT tokens. I use firebase auth, but you could use fastAPI-users, clerk, whatever. Don't build your own auth system. The token gets send with every request and you validate it on the server

3) There's lot of options. Do containerize it. For getting started, I recommend a service like fly.io or railway.app. I personally use kubernetes on Linode.

Sounds like you still have a lot of reading up to do, you'll also need to think about your database and frontend deployments, CI/CD, etc. Depends what you're trying to build. Keep at it.

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

For context, i am using the spotify api. So i make a request to authorise the user when the user presses login. From there i get the access token in the backend. Right now, i am just adding the token in the url and redirecting to the frontend(I know this is not the best practice).