Looking for Auth Advice

Hello, I am looking for some guidance on how to make my Authentication.
I have multiple nuxt apps that will all share the same user account. I would like to have a central login.

My current Idea would be:
Lets say I want to login to test.example.com, it will then redirect me to account.example.com?redirect=https://text.example.com/auth/callback

where I will be prompted to login with Discord (Discord will be the only login provider) and after that it will redirect me back to text.example.com/auth/callback?code=JWT_OR_Something_like_that

Is there a better solution to this? I will like to not use any third party software such as keycloak
Was this page helpful?