Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/telegram verifier #390

Merged
merged 45 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c198cfc
feat: telegram handler customauth
guru-web3 Jan 20, 2025
70218f9
feat: telegram example nextjs app
guru-web3 Jan 20, 2025
02eb084
fix: remove telegram server
guru-web3 Jan 23, 2025
7ca5360
fix: remove bot id
guru-web3 Jan 23, 2025
d299b18
fix: address review comments
guru-web3 Jan 23, 2025
68d883b
fix: lock
guru-web3 Jan 23, 2025
3d09cf3
fix: remove husky
guru-web3 Jan 23, 2025
015433e
fix: deployment
guru-web3 Jan 23, 2025
778b85f
fix: remove unused packages
guru-web3 Jan 23, 2025
d540c52
fix: husky
guru-web3 Jan 23, 2025
eff59cc
fix: husky
guru-web3 Jan 23, 2025
7bc3ce9
fix: dependancy
guru-web3 Jan 23, 2025
850b8b5
fix: dependancy
guru-web3 Jan 23, 2025
8d0fe3a
fix: dependancy
guru-web3 Jan 23, 2025
54d93b2
fix: dependancy
guru-web3 Jan 23, 2025
7f9e6ec
fix: dependancy
guru-web3 Jan 23, 2025
0a2ec04
fix: dependancy
guru-web3 Jan 23, 2025
5bd512b
fix: dependancy
guru-web3 Jan 23, 2025
fa329a5
fix: dependancy
guru-web3 Jan 23, 2025
c40f259
fix: dependancy
guru-web3 Jan 23, 2025
fb30280
fix: dependancy
guru-web3 Jan 23, 2025
e5996df
fix: dependancy
guru-web3 Jan 23, 2025
c347e2e
fix: next config
guru-web3 Jan 23, 2025
735eb75
fix: next config
guru-web3 Jan 23, 2025
8ca0c2e
fix: next config
guru-web3 Jan 23, 2025
fc17148
fix: next config
guru-web3 Jan 23, 2025
dec8820
fix: deployment
guru-web3 Jan 24, 2025
616c8a9
fix: undo git ignore
guru-web3 Jan 24, 2025
d713a91
fix: undo git ignore
guru-web3 Jan 24, 2025
b831c65
fix: verifier id field
guru-web3 Jan 27, 2025
dfe7507
Merge branch 'torusresearch:feat/telegram-verifier' into feat/telegra…
guru-web3 Jan 27, 2025
1c943ec
fix: customauth package
guru-web3 Jan 27, 2025
4f5aa90
fix: types and bot id
guru-web3 Jan 27, 2025
70efc92
fix: safe encode
guru-web3 Jan 27, 2025
5146e4c
fix: lint
guru-web3 Jan 27, 2025
ec71a75
fix: domain final url telegram
guru-web3 Jan 28, 2025
8cbd7e7
feat: customauth vue app
guru-web3 Feb 3, 2025
917e8ba
Merge pull request #391 from torusresearch/feat/telegram-vue-example
guru-web3 Feb 3, 2025
21ffcfb
feat: custom auth vue app
guru-web3 Feb 4, 2025
3717a38
Merge pull request #392 from torusresearch/feat/telegram-vue-example
guru-web3 Feb 4, 2025
f97c776
feat: custom auth vue app
guru-web3 Feb 4, 2025
4c14719
fix: removed reduntant channel for telegram handler
guru-web3 Feb 4, 2025
37b6e14
fix: review comments
gururamu4 Feb 6, 2025
c25a010
fix: review comments
gururamu4 Feb 6, 2025
8bb246a
fix: lint
gururamu4 Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_
_
6 changes: 4 additions & 2 deletions examples/nextjs-app/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "airbnb-typescript/base", "plugin:prettier/recommended", "prettier"],
"extends": ["prettier", "airbnb-typescript/base", "plugin:prettier/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
Expand All @@ -13,7 +13,7 @@
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["prettier", "react", "@typescript-eslint"],
"plugins": ["prettier", "react", "@typescript-eslint", "import"],
"settings": {
"import/resolver": {
"node": {
Expand All @@ -33,11 +33,13 @@
"tsx": "never"
}
],
"prettier/prettier": "error",
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/button-has-type": 0,
"no-console": 0,
"import/prefer-default-export": 0,
"react/prop-types": 0,
"import/no-extraneous-dependencies": "error",
"no-use-before-define": 0,
"promise/always-return": 0,
"react/forbid-prop-types": 0,
Expand Down
11 changes: 2 additions & 9 deletions examples/nextjs-app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
# .gitignore
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
Expand All @@ -28,7 +24,4 @@ yarn-error.log*
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
.env.production.local
1 change: 1 addition & 0 deletions examples/nextjs-app/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "@toruslabs/customauth";
7 changes: 7 additions & 0 deletions examples/nextjs-app/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const LINKEDIN = "linkedin";
export const TWITTER = "twitter";
export const WEIBO = "weibo";
export const LINE = "line";
export const TELEGRAM = "telegram";
export const EMAIL_PASSWORD = "email_password";
export const PASSWORDLESS = "passwordless";
export const HOSTED_EMAIL_PASSWORDLESS = "hosted_email_passwordless";
Expand Down Expand Up @@ -50,6 +51,12 @@ export const verifierMap = {
clientId: "682533837464666198",
verifier: "discord-lrc",
},
[TELEGRAM]: {
name: "Telegram",
typeOfLogin: "telegram",
clientId: "7696397063",
verifier: "test-telegram-4",
},
[EMAIL_PASSWORD]: {
name: "Email Password",
typeOfLogin: "email_password",
Expand Down
1 change: 1 addition & 0 deletions examples/nextjs-app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ module.exports = {
},
]
},
distDir: '.next', // Use the default output directory for Vercel
productionBrowserSourceMaps: true,
}
Loading