feat: improve authentication and cookie management
- Updated Docker and Turbo configuration to include more environment variables - Modified API configuration to support dynamic cookie and CORS settings - Enhanced user authentication flow with optional device ID and automatic generation - Refactored login, register, and logout resolvers to handle device management - Updated GraphQL schema to make device ID optional - Improved web application logout and authentication handling - Simplified client-side GraphQL mutations for login and registration
This commit is contained in:
parent
d29d116214
commit
f9c6230101
15 changed files with 190 additions and 148 deletions
|
@ -6,11 +6,11 @@ services:
|
|||
container_name: unreal-chat-api
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
|
||||
- API_HOST=${API_HOST}
|
||||
- API_PORT=${API_PORT}
|
||||
- COOKIE_SECRET=${COOKIE_SECRET}
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- MEMC_HOST=${MEMC_HOST}
|
||||
- MEMC_PORT=${MEMC_PORT}
|
||||
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
|
||||
|
@ -19,10 +19,8 @@ services:
|
|||
- MINIO_PORT=${MINIO_PORT}
|
||||
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
|
||||
- MINIO_USE_SSL=${MINIO_USE_SSL}
|
||||
- NODE_ENV=production
|
||||
- NODE_ENV=${NODE_ENV}
|
||||
- TOKEN_SECRET=${TOKEN_SECRET}
|
||||
networks:
|
||||
- default-network
|
||||
|
||||
web:
|
||||
build:
|
||||
|
@ -37,8 +35,6 @@ services:
|
|||
- NODE_ENV=production
|
||||
- VITE_API_URL=https://chat-api.jusemon.com/graphql
|
||||
- VITE_WS_URL=wss://chat-api.jusemon.com/graphql
|
||||
networks:
|
||||
- default-network
|
||||
|
||||
networks:
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue