mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 09:02:11 +03:00
8fbad7d3ba
* Add create api-key route * Import module * Remove required mutation parameter * Fix Authentication * Generate random key * Update Read ApiKeyAbility handler * Add findMany apiKey route * Remove useless attribute * Use signed token for apiKeys * Authenticate with api keys * Fix typo * Add a test for apiKey module * Revoke token when api key does not exist * Handler expiresAt parameter * Fix user passport * Code review returns: Add API_TOKEN_SECRET * Code review returns: Rename variable * Code review returns: Update code style * Update apiKey schema * Update create token route * Update delete token route * Filter revoked api keys from listApiKeys * Rename endpoint * Set default expiry to 2 years * Code review returns: Update comment * Generate token after create apiKey * Code review returns: Update env variable * Code review returns: Move method to proper service --------- Co-authored-by: martmull <martmull@hotmail.com>
25 lines
807 B
Plaintext
25 lines
807 B
Plaintext
DEBUG_MODE=true
|
|
PG_DATABASE_URL=postgres://twenty:twenty@localhost:5432/test?connection_limit=1
|
|
# Use this for docker setup
|
|
# PG_DATABASE_URL=postgres://twenty:twenty@postgres:5432/default?connection_limit=1
|
|
|
|
# the URL of the front-end app
|
|
FRONT_BASE_URL=http://localhost:3001
|
|
# random keys used to generate JWT tokens
|
|
ACCESS_TOKEN_SECRET=secret_jwt
|
|
LOGIN_TOKEN_SECRET=secret_login_tokens
|
|
API_TOKEN_SECRET=secret_api_tokens
|
|
REFRESH_TOKEN_SECRET=secret_refresh_token
|
|
|
|
|
|
# ———————— Optional ————————
|
|
# DEBUG_MODE=false
|
|
# SIGN_IN_PREFILLED=false
|
|
# ACCESS_TOKEN_EXPIRES_IN=30m
|
|
# LOGIN_TOKEN_EXPIRES_IN=15m
|
|
# REFRESH_TOKEN_EXPIRES_IN=90d
|
|
# FRONT_AUTH_CALLBACK_URL=http://localhost:3001/verify
|
|
# AUTH_GOOGLE_ENABLED=false
|
|
# STORAGE_TYPE=local
|
|
# STORAGE_LOCAL_PATH=.local-storage
|