Skip to content

Commit

Permalink
Revert "fix: update tg login url" (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsday authored Aug 20, 2024
1 parent e17c4b1 commit 29db5f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
15 changes: 5 additions & 10 deletions apps/wallet/.env.development
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
VITE_APP_ENV=Local
VITE_RELEASE_VERSION=v1.0
VITE_EX3_API=https://alphaapi.ex3.one/
VITE_HIBIT_AUTH_CLIENT_ID=hibit_id_local
VITE_SYSTEM_MAX_DECIMALS=8

# local to staging server
VITE_HIBIT_ID_API=https://testnetidapi.hibit.app/
VITE_HIBIT_AUTH_SERVER=https://testnetauth.hibit.app/
VITE_TELEGRAM_BOT_ID=6944468360

# local server
#VITE_HIBIT_ID_API=https://localhost:54397/
VITE_HIBIT_AUTH_SERVER=https://testnetauth.hibit.app/
#VITE_HIBIT_AUTH_SERVER=https://localhost:44383/
#VITE_TELEGRAM_BOT_ID=5768337691
VITE_EX3_API=https://alphaapi.ex3.one/
VITE_HIBIT_AUTH_CLIENT_ID=hibit_id_local
VITE_TELEGRAM_BOT_ID=6944468360
VITE_SYSTEM_MAX_DECIMALS=8
4 changes: 2 additions & 2 deletions apps/wallet/src/utils/auth/providers/telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class TelegramAuthenticateProvider implements IAuthenticateProvider {
// mini app
if (launchParams) {
// sessionStorage.removeItem('telegram-apps/launch-params')
window.location.href = `${AUTH_SERVER_URL}connect/custom/telegram/miniapp?tgWebAppData=${encodeURIComponent(launchParams)}&returnUrl=${encodeURIComponent(`${location.origin}/oidc-login`)}`
window.location.href = `${AUTH_SERVER_URL}Telegram/Login?tgWebAppData=${encodeURIComponent(launchParams)}&returnUrl=${encodeURIComponent(`${location.origin}/oidc-login`)}`
return
}

Expand All @@ -44,7 +44,7 @@ export class TelegramAuthenticateProvider implements IAuthenticateProvider {
}
const queryValue = objToQuery(data)
// sessionStorage.removeItem('telegram-apps/launch-params')
window.location.href = `${AUTH_SERVER_URL}connect/custom/telegram/web?${queryValue}&returnUrl=${encodeURIComponent(`${location.origin}/oidc-login`)}`
window.location.href = `${AUTH_SERVER_URL}Telegram/WebLogin?${queryValue}&returnUrl=${encodeURIComponent(`${location.origin}/oidc-login`)}`
resolve(true)
},
);
Expand Down

0 comments on commit 29db5f2

Please sign in to comment.