🌈 Should I Customise AIOHA or Build from Scratch? 🤔 (A Hive Dev Adventure)

in HiveDevs8 days ago

🚀 Hello Hive Community! 🐝

Welcome, awesome Hive fam!
Today, let’s put on our techie hats 🧢 and embark on a (sometimes bumpy) ride through my AIOHA integration journey. Spoiler: 🍋 Easy-peasy…until it’s not! Let’s sprinkle some fun, fresh tips, share the facepalm moments, and map out what works for Hive auth—AIOHA style!


✨ Why I Consider Building Hive Authentication From Scratch

When it comes to integrating Hive-auth, AIOHA looked like a knight in shining armor for 3-4 months. But now, the real question is… should I customise it or build fresh? Let’s dive in with some lemon-tastic takes! 🍋👇


🙌 It's So Easy... Until It's Not!

easy peasy

  • For months, @aioha made my dev life a walk in the park 🌳.
  • Plug and play with blockchain stuff? ✅ Instantly solved!
  • Auto Hive login? ✅. Broadcast any transaction? ✅.
  • Account switching? Triple yes! 🕺🪩

🧈 So, Where’s the Butter Slippery?

Of course, not everything’s smooth sailing... Butter sometimes slips from the bread! 🧈🍞
Let’s break down each hiccup so you can LOL and learn from my adventures.


❓ Login But Not Logged In (Wait, What?! 🙃)

logging off

  • Had a user saying, “Logged in… but no data!” 🚫📊
  • Dug deeper, and boom! Login-API flaked. No JWT token. 🍂
  • Not AIOHA’s fault—server hiccup during a restart.
  • User felt logged in, but backend said “Nope.”
  • Pro tip: If API fails, aioha.logout(); to the rescue!
    (But hang on, more curveballs coming up… 🎢)

🕵️ Is User Logged In or Logged Out? Schrödinger's Session! 🧪

Is user logged in or out

  • JWT tokens expire after 30 days ⏰ (session goes kaboom).
  • But AIOHA? Keeps the “session” alive forever like an energetic puppy 🐶.
  • Result: Must write extra code to sync token expiry AND AIOHA session—
    Or users become session zombies 👻 (logged out but shhh, don’t tell AIOHA).

🔄 Switch User: Magical Yet Messy 🧙‍♂️

account switching

  • On surface: Easy peasy! UI account switcher – tick! 🟢
  • Problem: App doesn’t know about the switch unless you listen for special events 🦻
  • More fun: You gotta roll your own code to handle tokens of switched users.
  • Double trouble: What if session is expired but user switched via AIOHA? Uh-oh. 🫠

🔐 Private Key Based Login: The Lone Wolf 🐺

Private key

  • AIOHA says “nope” to multiple private-posting-key logins—one at a time only 🔑😞.
  • Advocates server-side use (client side = 🚨 security risk!).
  • Some users (like @starkerz) LOVE logging in with multiple private-posting keys, but can’t do easily.

🎨 ReactUI: Not My Style 💃

ReactUI

  • AIOHA’s ReactUI may clash with your app’s theme. 🎭
  • So you end up building your own UI…and then, why not build the core too from scratch? 🤷

📝 Features I Miss (AIOHA Wishlist) 🌟

  • Disabling the “View in Explorer” button? Nope ❌
  • Click event for log-out? Only with disconnect event—no direct callback 🙃
  • No avatars—neither on user lists nor during username typing! 🫥
  • “One-click log out from all accounts” = still on my wishlist 📝

🎯 Conclusion

All in all, AIOHA is a fantastic starter kit 🚀.
Perfect for hackathons, jumpstarts, or prototypes.
But when you want custom features, you might hit the feature ceiling!
What AIOHA built is brilliantly general. What we need? Sometimes, a tailor-made suit! 🕴️

I hope this fun breakdown helps fellow devs who want to integrate @aioha in their Hive projects!
Happy coding, Hive friends. Let’s keep building, laughing, and sharing the bumps along the blockchain! 🐝💻😄


  • Have you had a wacky auth adventure? Tell me below! ⬇️ Sharing = caring!
  • More power to @aioha & dev of aioha - @techcoderx
  • More power to open-source contributors on hive blockchain
  • More power to hive community members
  • More power to Hive
  • Hive to the moon & beyond.

To Infinity And Beyond


📝 Final Note


🚀 My Contributions to ♦️ Hive Ecosystem

ContributionToHiveEcosystem
Hive Witness NodeHive API Node (in progress)3Speak Video Encoder Node Operator (highest number of nodes)3Speak Mobile App Developer
3Speak Podcast App Developer3Speak Shorts App Developer3Speak Support & Maintenance TeamDistriator Developer
CheckinWithXYZHive InboxHiFindHive Donate App
Contributed to HiveAuth Mobile AppEcency ↔ 3Speak IntegrationEcency ↔ InLeo IntegrationEcency ↔ Actifit Integration
Hive Stats AppVote for Witness AppHiveFlutterKitNew 3Speak App

🙌 Support Back

❤️ Appreciate my work? Consider supporting @threespeak & @sagarkothari88! ❤️


Sort:  

"AIOHA a knight in shining armor... until it's not! 🤣 Keen to see if building fresh wins!"

building fresh

Building fresh is a nightmare
I'll try to find something in between.

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

You received more than 36000 HP as payout for your posts, comments and curation.
Your next payout target is 37000 HP.
The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD

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