diff --git a/compose-dev-backend.yml b/compose-dev-backend.yml index 6c0ab3e6..bbdedf93 100644 --- a/compose-dev-backend.yml +++ b/compose-dev-backend.yml @@ -35,8 +35,8 @@ services: - "8084:8084" # local oauth2 server environment: -# - APP_UID=1000 -# - TIME_ZONE=GMT + # - APP_UID=1000 + # - TIME_ZONE=GMT - REMARK_URL=http://127.0.0.1:8080 - SECRET=12345 - STORE_BOLT_PATH=/srv/var/db @@ -57,5 +57,7 @@ services: - AUTH_GITHUB_CSEC=1111 - AUTH_FACEBOOK_CID=1111 - AUTH_FACEBOOK_CSEC=1111 + - AUTH_TWITTER_CID=1111 + - AUTH_TWITTER_CSEC=1111 volumes: - ./var:/srv/var diff --git a/frontend/app/common/constants.ts b/frontend/app/common/constants.ts index 6e22940f..c05a2400 100644 --- a/frontend/app/common/constants.ts +++ b/frontend/app/common/constants.ts @@ -17,6 +17,7 @@ export const DEFAULT_SORT: Sorting = '-active'; /* matches auth providers to UI label */ export const PROVIDER_NAMES: { [P in AuthProvider['name']]: string } = { google: 'Google', + twitter: 'Twitter', facebook: 'Facebook', github: 'GitHub', yandex: 'Yandex', diff --git a/frontend/app/common/types.ts b/frontend/app/common/types.ts index debc98d5..66f181e6 100644 --- a/frontend/app/common/types.ts +++ b/frontend/app/common/types.ts @@ -126,6 +126,7 @@ export type AuthProvider = | { name: 'facebook' } | { name: 'github' } | { name: 'yandex' } + | { name: 'twitter' } | { name: 'dev' } | { name: 'anonymous'; username: string } | { name: 'email'; token: string };