Skip to content

Commit

Permalink
feat: add getAuthToken
Browse files Browse the repository at this point in the history
  • Loading branch information
akasuv committed Oct 30, 2023
1 parent aa238f7 commit 2c9088d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/CyberWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,22 @@ class CyberWallet {
});
});
}

public async getAuthToken(): Promise<string> {
this.messenger.sendMessage({
name: "action",
data: {
type: EventType.Request,
method: "getAuthToken",
},
});

return new Promise((resolve, reject) => {
this.messenger.onMessage((message) => {
this.resolveActionResponse(message, reject, resolve);
});
});
}
}

export default CyberWallet;

0 comments on commit 2c9088d

Please sign in to comment.