Re-implement authentication (#136)

* Remove hasura and hasura-auth

* Implement authentication
This commit is contained in:
Charles Bochet
2023-05-25 11:51:15 +02:00
committed by GitHub
parent 5d06398d2e
commit 80f9cc8797
21 changed files with 1937 additions and 11092 deletions

7
server/.env.example Normal file
View File

@ -0,0 +1,7 @@
AUTH_GOOGLE_CLIENT_ID=REPLACE_ME
AUTH_GOOGLE_SECRET=REPLACE_ME
AUTH_GOOGLE_CALLBACK_URL='http://localhost:3000/google/redirect'
JWT_SECRET=secret_jwt
JWT_EXPIRES_IN=300
SERVER_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/default
FRONT_AUTH_CALLBACK_URL=http://localhost:3001/auth/callback