Skip to content

Commit

Permalink
Merge pull request #306 from torusresearch/feat/bc-update
Browse files Browse the repository at this point in the history
- Update broadcast channel deps to fix cross-origin issues
  • Loading branch information
chaitanyapotti authored Oct 13, 2023
2 parents 89fa7c7 + 081f5e5 commit 1ff99b3
Show file tree
Hide file tree
Showing 10 changed files with 644 additions and 684 deletions.
24 changes: 12 additions & 12 deletions examples/vue-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/vue-app/public/serviceworker/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@
<h1 class="title content" id="closeText" style="display: none">You can close this window now</h1>
</div>
<script
src="https://scripts.toruswallet.io/broadcastChannel_8_0_0.js"
integrity="sha384-Q7KaAJnYX4pkKyymEF39qtD0a4poqIMbkiuz5fetrosIhnKlSherFhiQ8ZdQGh17"
src="https://scripts.toruswallet.io/broadcastChannel_9_0_0.js"
integrity="sha384-nbxq0ciPTNmGeCrATAjgJtLS/hHp33KxBqDFvi9lsOK7eqDNDLiWdUrocSTxW7xp"
crossorigin="anonymous"
></script>
<script>
Expand Down Expand Up @@ -218,7 +218,7 @@ <h1 class="title content" id="closeText" style="display: none">You can close thi
},
error: error,
},
"http://localhost:3000"
"http://localhost:3000",
);
} else {
// communicate via broadcast channel
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-app/public/serviceworker/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ self.addEventListener("fetch", function (event) {
<h1 class="title content" id="closeText" style="display: none;">You can close this window now</h1>
</div>
<script
src="https://scripts.toruswallet.io/broadcastChannel_8_0_0.js"
integrity="sha384-Q7KaAJnYX4pkKyymEF39qtD0a4poqIMbkiuz5fetrosIhnKlSherFhiQ8ZdQGh17"
src="https://scripts.toruswallet.io/broadcastChannel_9_0_0.js"
integrity="sha384-nbxq0ciPTNmGeCrATAjgJtLS/hHp33KxBqDFvi9lsOK7eqDNDLiWdUrocSTxW7xp"
crossorigin="anonymous"
></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-app/src/views/PopupMode/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default defineComponent({
if (!this.torusdirectsdk) return;
const jwtParams = this.loginToConnectionMap[this.selectedVerifier] || {};
const { typeOfLogin, clientId, verifier } = verifierMap[this.selectedVerifier];
console.log(hash, queryParameters, typeOfLogin, clientId, verifier, jwtParams);
console.log(hash, queryParameters, typeOfLogin, clientId, verifier, jwtParams, this.torusdirectsdk);

Check warning on line 233 in examples/vue-app/src/views/PopupMode/Login.vue

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Unexpected console statement
const loginDetails: TorusLoginResponse = await this.torusdirectsdk.triggerLogin({
typeOfLogin,
verifier,
Expand Down
Loading

0 comments on commit 1ff99b3

Please sign in to comment.