add twitter to the list of providers on frontend #70

This commit is contained in:
Umputun
2019-10-08 03:14:24 -05:00
parent 4dc123dbe8
commit da63dd2c78
3 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -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
+1
View File
@@ -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',
+1
View File
@@ -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 };