Hive Authentication Services - HTML code example
![](https://i.imgur.com/MIuOAhx.png)
Since its launch a few months ago, more and more applications integrate HiveAuth as an authentication method.
For developers, the major advantage of supporting HiveAuth is that it makes their application easy to use for anyone with a Hive account, both on desktop and mobile. In addition, HiveAuth support avoids users having to provide their private keys, which reinforces the security and the feeling of trust in the application they use.
### HiveAuth integration is so easy!
Although integrating HiveAuth is really child's play, sometimes developers feel intimidated reading the extensive technical [documentation](https://docs.hiveauth.com).
That's why I decided to provide them with an example of HiveAuth integration in a simple HTML file. **No library, no framework, just a few lines of HTML and javascript code**.
It will let you see how easy it is to integrate HiveAuth into your application.
It is available in open-source on [Github](https://github.com/hiveauth/hive-auth-html).
The example consists of a small HTML file (and a logo image file) that you can open in your browser:
![](https://i.imgur.com/EsfVoE2.png)
After entering your username and clicking on the button, it will display a QR code that you can scan with Keychain Mobile
![](https://i.imgur.com/tyWUCDC.png)
You just have to open Keychain, scan the code and approve the authentication request.
![](https://i.imgur.com/tS9AjfN.png)
You will then be able to broadcast a sample custom_json operation to the Hive blockchain using either your Posting key or Active Key.
![](https://i.imgur.com/5uiNBj4.png)
Approve (or decline) the transaction request with Keychain on your mobile
![](https://i.imgur.com/wpcNsTq.png)
As soon as you approve the operation via Keychain, the HTML code will display a notification.
![](https://i.imgur.com/3bh6Qe9.png)
Thanks to this concise example, it will only be easier for any developer to integrate HiveAuth as an authentication method in their applications.
### Source code, documentation and support
As mentioned at the beginning of the article, the source code for this sample, as well as other sample code and libraries you can use to make your job easier, is available on [Github](https://github.com/hiveauth).
The [HAS documentation](https://docs.hiveauth.com) has been updated with references to this new example.
Finally, if you need help integrating HiveAuth into your (d)Apps, support is provided on [Discord](https://discord.gg/Tk5dkAgQPh)
---
| |
|-|
|[Vote for the proposal on PeakD](https://peakd.com/me/proposals/194)
[Vote for the proposal on Ecency](https://ecency.com/proposals/194)
[vote for the proposal on Hive.blog](https://wallet.hive.blog/proposals)
[Vote for the proposal using HiveSigner](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22194%22%5D&approve=true) |
---
### Check out my apps and services
### [Vote for me as a witness ![](https://i.imgur.com/2bi4SnT.png)](https://hivesigner.com/sign/account-witness-vote?witness=arcange&approve=1)</div>
**Support the **HiveAuth** project**
[Vote for the proposal on Ecency](https://ecency.com/proposals/194)
[vote for the proposal on Hive.blog](https://wallet.hive.blog/proposals)
[Vote for the proposal using HiveSigner](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22194%22%5D&approve=true)
See: Hive Authentication Services - HTML code example by @arcange