Aioha v1.6: Multi-User Authentication, Account Discovery and more!

in #aioha3 months ago


Today we are announcing the release of Aioha v1.6 for our core, React provider and UI libraries. This is a major non-breaking update from v1.5.

What's new?

New wallet request events

Starting in v1.6, the following events will be emitted whenever a request has been sent to the wallet provider that may require user action:

  • login_request
  • memo_request
  • sign_msg_request
  • sign_tx_request
  • hiveauth_challenge_request
  • hiveauth_sign_request

Apps may listen to these events by registering the event listener using aioha.on(eventName, callback). Refer to the docs for more info.

Multi-user authentication

Aioha now supports multiple concurrent wallet connections to different accounts which may be using a variety of providers and switch between them.

Adding another user is as simple as calling aioha.login() again for the other user, as long as the same user is not already connected. Switching to an already connected user may be done using aioha.switchUser('user2'), and disconnecting a currently inactive account may be done using aioha.removeOtherLogin('user2').

These additional connections persists in the browser (when applicable) besides the active connected account.

Account discovery

This searches the selected wallet provider for available accounts. It may be used to save an extra step of typing in the username, and instead a list of discovered accounts will be listed for the user to select.

Account discovery is currently available on Ledger provider only at this moment. More details on usage may be found here.

Other features

  • Updated VSC functions for mainnet with Keychain specific implementation (Usage)
  • Method to sign and broadcast a hive-uri encoded transaction (Usage)

React UI

The ready-made UI library has been updated to handle the necessary frontend logic to implement the new features.

Account Switcher
Discovered Accounts

Additionally, a new grid provider selection layout has been added as a built-in option that apps may choose to use.

List View
(New) Grid View

Links

Landing page and docs: https://aioha.dev
Github: https://github.com/aioha-hive
NPM: https://www.npmjs.com/package/@aioha/aioha
Sting: https://chat.peakd.com/t/hive-134220/1

Sort:  

Congratulations @aioha! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 700 upvotes.
Your next target is to reach 800 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP