diff --git a/src/App.vue b/src/App.vue index c34d911..a1d143b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -46,11 +46,11 @@ export default { registerEventListeners: function() { registerEventListeners(); }, - login: function() { - login(); + login: async function() { + await login(); }, - logout: function() { - logout(); + logout: async function() { + await logout(); }, }, created: async function() { diff --git a/src/services/wallet-service.js b/src/services/wallet-service.js index ee9d21d..f1154ba 100644 --- a/src/services/wallet-service.js +++ b/src/services/wallet-service.js @@ -78,7 +78,7 @@ export async function login() { } } -export function logout() { +export async function logout() { window.funwallet.sdk.auth.logout(); isAuthenticated$.next(false); }