![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@aioha/aioha
Advanced tools
Aioha is an API that provides a common interface for working with different Hive login providers. This allows easier integration of Hive login and transacting on the network with fewer code.
This repository contains the core API designed for use in browser contexts. Ready to use packages with UI included are to follow soon.
pnpm i @aioha/aioha
import { initAioha, Asset, KeyTypes, Providers } from '@aioha/aioha'
// Instantiation
const aioha = initAioha({
hiveauth: {
name: 'Aioha',
description: 'Aioha test app'
},
hivesigner: {
app: 'ipfsuploader.app',
callbackURL: window.location.origin + '/hivesigner.html',
scope: ['login', 'vote']
}
})
// Get registered providers
console.log(aioha.getProviders())
// Get current logged in user and provider name
if (aioha.isLoggedIn()) {
console.log(aioha.getCurrentUser(), aioha.getCurrentProvider())
}
// Login with provider. Supported providers are listed above, as in Providers enum.
const login = await aioha.login(Providers.Keychain, 'hiveusername', {
msg: 'Hello World',
keyType: KeyTypes.Posting,
hiveauth: {
cbWait: (payload, evt) => {
// display HiveAuth QR code using `payload` as data
}
}
})
// Transfer 1 HIVE using logged in provider
const xfer = await aioha.transfer('recipient', 1, Asset.HIVE, 'Transferred using Aioha with memo')
// Vote comment with 100% weight
const vote = await aioha.vote('author', 'permlink', 10000)
// Claim rewards
const rewardClaim = await aioha.claimRewards()
More usage details can be found on the Aioha documentation here.
Aioha uses certain keys in browser localStorage
to store persistent logins, and in the case of HiveSigner provider, pass info from callback URL.
The following keys are reserved:
aiohaUsername
, aiohaProvider
hiveauthToken
, hiveauthKey
, hiveauthExp
hivesignerTxId
, hivesignerToken
, hivesignerExpiry
, hivesignerUsername
ledgerPath
A callback page is required for HiveSigner provider. An example HTML with the code which parses the response data and stores them into localStorage
has been included in snippets/hivesigner.html
file.
pnpm run build
pnpm run webpack
tsc
output can be found in build
folder and the Webpack output can be found in dist
folder with bundle.js
being the entrypoint. All Webpack output files are to be served and will be loaded on-demand depending on the provider selected upon login.
FAQs
All-In-One Hive Authentication API
We found that @aioha/aioha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.