Skip to content

Commit

Permalink
add correct signatures for bnb & polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Sep 19, 2022
1 parent 29daf9e commit 31df904
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.bnb
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ VUE_APP_LOGIN_DOMAIN=https://torus.au.auth0.com
VUE_APP_PASSWORDLESS_DOMAIN=https://auth.openlogin.com
VUE_APP_SENTRY_DSN=https://[email protected]/5590576
VUE_APP_DEVELOPER_DASHBOARD_URL=https://api.developer.tor.us
# this is for app.tor.us
VUE_APP_OPENLOGIN_ORIGIN_SIGNATURE=MEUCIQDFdkBIGWMCQzmclVVWSrUiropSXKmh9OudXiOhp-jZfwIgdCCO2LM3xE5XQPVQA4M4d_GNwYU-h87ieA3cfhZ6-Yo
# this is for bnb.tor.us
VUE_APP_OPENLOGIN_ORIGIN_SIGNATURE=MEQCIB9wN5FYV91zbJWssKw-T707Iz-k2qigQ8OB6tt0N_IGAiAJ6aoQZ2oM3RBJ6G1bFeU8zPv54cv_LBYzOVtXZj6G3w
4 changes: 2 additions & 2 deletions .env.polygon
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ VUE_APP_LOGIN_DOMAIN=https://torus.au.auth0.com
VUE_APP_PASSWORDLESS_DOMAIN=https://auth.openlogin.com
VUE_APP_SENTRY_DSN=https://[email protected]/5590576
VUE_APP_DEVELOPER_DASHBOARD_URL=https://api.developer.tor.us
# this is for app.tor.us
VUE_APP_OPENLOGIN_ORIGIN_SIGNATURE=MEUCIQDFdkBIGWMCQzmclVVWSrUiropSXKmh9OudXiOhp-jZfwIgdCCO2LM3xE5XQPVQA4M4d_GNwYU-h87ieA3cfhZ6-Yo
# this is for polygon.tor.us
VUE_APP_OPENLOGIN_ORIGIN_SIGNATURE=MEQCIHmKCljC6Ncxe-TyhKHWxTUI7eFj3kjUEqgu40aLZkS0AiAki72DNFmj2WD_itl-5LZ_wYzK1ZS_B7o5qzHzSnzI5w
14 changes: 14 additions & 0 deletions whitelistUrl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { whitelistUrl } = require('@toruslabs/openlogin')

const clientId = 'BCY9aYsh8iGshQuzNjBbONYE-tKD0JM389l87IiMOVeOU1TBmRaZphKOyphkUpo41fuSMnO6QRlloxCV-3nt8dU'
const appKey = ''
const origin = 'https://bnb.tor.us'

async function whitelist() {
const res = await whitelistUrl(clientId, appKey, origin)
// eslint-disable-next-line no-console
console.log(res)
}

// eslint-disable-next-line unicorn/prefer-top-level-await
whitelist()

0 comments on commit 31df904

Please sign in to comment.