Skip to content

Commit

Permalink
mimic event name
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Sep 19, 2023
1 parent 96bee5a commit 7560cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/public/iframe/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ window.addEventListener('message', function (event) {
* @type data.path {string}
*/
const data = event.data;
if (data.event === 'login' && data.loginToken) {
if (data.event === 'login-with-token' && data.loginToken) {
localStorage.setItem('Meteor.loginToken', data.loginToken);

window.location.href = window.location.href.replace('/iframeLogin', data.path ?? '/home');
Expand Down

0 comments on commit 7560cec

Please sign in to comment.