Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add awaitNostr shim to prevent authentication issues #2

Closed
melvincarvalho opened this issue May 8, 2023 · 0 comments
Closed

Add awaitNostr shim to prevent authentication issues #2

melvincarvalho opened this issue May 8, 2023 · 0 comments

Comments

@melvincarvalho
Copy link
Owner

Currently, the nostr.chat application might encounter issues during the authentication process if the extension is not fully loaded before attempting to authenticate. This can result in errors or unexpected behavior in the app.
Proposed solution

To address this issue, I suggest we implement an awaitNostr shim that ensures the extension is completely loaded before proceeding with authentication. This can be achieved by wrapping the authentication function in a promise that resolves only when the extension has been loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant