Skip to content

Commit 7acc13f

Browse files
Merge pull request #390 from torusresearch/feat/telegram-verifier
Feat/telegram verifier
2 parents 8fece1e + 8bb246a commit 7acc13f

File tree

23 files changed

+17908
-2592
lines changed

23 files changed

+17908
-2592
lines changed

.husky/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
_
1+
_

examples/nextjs-app/.eslintrc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"browser": true,
44
"es2021": true
55
},
6-
"extends": ["plugin:react/recommended", "airbnb-typescript/base", "plugin:prettier/recommended", "prettier"],
6+
"extends": ["prettier", "airbnb-typescript/base", "plugin:prettier/recommended", "prettier"],
77
"parser": "@typescript-eslint/parser",
88
"parserOptions": {
99
"ecmaFeatures": {
@@ -13,7 +13,7 @@
1313
"sourceType": "module",
1414
"project": ["./tsconfig.json"]
1515
},
16-
"plugins": ["prettier", "react", "@typescript-eslint"],
16+
"plugins": ["prettier", "react", "@typescript-eslint", "import"],
1717
"settings": {
1818
"import/resolver": {
1919
"node": {
@@ -33,11 +33,13 @@
3333
"tsx": "never"
3434
}
3535
],
36+
"prettier/prettier": "error",
3637
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
3738
"react/button-has-type": 0,
3839
"no-console": 0,
3940
"import/prefer-default-export": 0,
4041
"react/prop-types": 0,
42+
"import/no-extraneous-dependencies": "error",
4143
"no-use-before-define": 0,
4244
"promise/always-return": 0,
4345
"react/forbid-prop-types": 0,

examples/nextjs-app/.gitignore

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
1+
# .gitignore
52
/.pnp
63
.pnp.js
74

85
# testing
96
/coverage
107

118
# next.js
12-
/.next/
139
/out/
1410

1511
# production
@@ -28,7 +24,4 @@ yarn-error.log*
2824
.env.local
2925
.env.development.local
3026
.env.test.local
31-
.env.production.local
32-
33-
# vercel
34-
.vercel
27+
.env.production.local

examples/nextjs-app/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module "@toruslabs/customauth";

examples/nextjs-app/lib/constants.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const LINKEDIN = "linkedin";
99
export const TWITTER = "twitter";
1010
export const WEIBO = "weibo";
1111
export const LINE = "line";
12+
export const TELEGRAM = "telegram";
1213
export const EMAIL_PASSWORD = "email_password";
1314
export const PASSWORDLESS = "passwordless";
1415
export const HOSTED_EMAIL_PASSWORDLESS = "hosted_email_passwordless";
@@ -50,6 +51,12 @@ export const verifierMap = {
5051
clientId: "682533837464666198",
5152
verifier: "discord-lrc",
5253
},
54+
[TELEGRAM]: {
55+
name: "Telegram",
56+
typeOfLogin: "telegram",
57+
clientId: "7696397063",
58+
verifier: "test-telegram-4",
59+
},
5360
[EMAIL_PASSWORD]: {
5461
name: "Email Password",
5562
typeOfLogin: "email_password",

examples/nextjs-app/next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ module.exports = {
88
},
99
]
1010
},
11+
distDir: '.next', // Use the default output directory for Vercel
1112
productionBrowserSourceMaps: true,
1213
}

0 commit comments

Comments
 (0)