stellar-expert / albedo

Security-centric, developer-friendly, easy-to-use delegated signer and keystore for Stellar Network
https://albedo.link
MIT License
64 stars 14 forks source link

The 'public_key' example still does not work #58

Closed ftppro closed 3 years ago

ftppro commented 3 years ago

I am using just javascript. I am not using any "build system". The Albedo Chrome extension is active on my browser. My code is preceded with:

I was instructed to add the "default" indicator, as is shown below:

albedo.default.publicKey({ token: 'vuEiDlijTCLdR8fqDHdfUQUUyVpVenVO2YGBrljh/Iw=' }) .then(res => console.log(res.pubkey, res.signed_message, res.signature))

Although it is not displaying an error, it is not displaying the public key.

I also tried this approach (in an async function): var objPublicKey = await albedo.default.publicKey() console.log(objPublicKey)

It did not execute the "console.log" line. The program hung on "await albedo.default.publicKey()".

This problem was caused by the Chrome popup blocker. No other extensions use popups. You might want to consider using the extension sidebar instead, (which Chrome does not block as a popup).