Demo on integrating Hive Auth for Mobile Apps

41

  • 393
  • 6
  • 37.154
  • Reply

  • Open in the desktop app ADD TO PLAYLIST

    sagarkothari88

    Published on Dec 21, 2022
    About :

    expected output

    Intro

    Hello Hive Community members,

    • With this video, I would like to give you a demo on Hive Authentication system integration on mobile apps
    • At the moment, I am using Flutter SDK to build apps
    • In case, you are working on native app, you can refer to native code only.

    Let's get started.

    • Okay. So, Let's get started.
    • On the right, you are looking at the mirroring of my Actual iPhone.
    • On the left, you can see that I have opened Android Studio & You are looking at code which is written in Dart language.
    • With Dart language & Flutter SDK you can build apps for multiple platforms.

    Explore source code

    • Let's go to browser.
    • https://github.com/sag333ar/hive_auth_demo
    • Anyone can go ahead & fork the code which I've written.
    • It is open source & available for all community members.
    • We'll take a look at the main.dart.
    • Here you can see that, on tap of login button, I am invoking a native method with a parameter username.
    • At the moment, username is static.
    • But if you're building an app, you can take the value from input field & pass that into this parameter.

    image

    Flutter to Native?

    What next?

    • So, What happens after it?
    • Native app invokes HAS with those params.
    • HAS provides A QR Code String & with that QR code String, we do redirection to KeyChain app.
    • As a user, you must have hive-keychain installed
    • And also, it would be great if you're logged in already
    • If everything is set correctly, flutter app will launch HiveKeychain app.
    • Once you provide authorisation from hive-kechain, navigate back to your flutter app.

    Refresh

    • Click on refresh.
    • As a developer, you can also integrate auto-refresh, upon app resume. I leave that to you to integrate.
    • Now, you can see the HAS-ID on the screen. Of course I have to keep it blurred for security reasons.
    • It also shows expiry value.

    image

    Did it help?

    • I hope this short video session was helpful for you guys.
    • I want more devs to join Hive community.
    • Hoping that with this tutorial, we'll have more flutter & native devs showing interest.

    Who am I?


    Support Me Back 🙏

    Support 3Speak

    Download Android AppVote me as Hive WitnessDownload iOS App
    Join 3Speak DiscordSetup Encoder NodeVote for 3Speak Proposal
    --Get a server

    Cheers
    Have a good one

    Tags :

    hive has keychain dapps auth upmewhale india android ios threespeak

    Woo! This creator can upvote comments using 3speak's stake today because they are a top performing creator! Leave a quality comment relating to their content and you could receive an upvote worth at least a dollar.

    Their limit for today is $0!
    Comments:
    Time until sagarkothari88 can give away $0 to their commenters.
    0 Days 0 Hours 0 Minutes 0 Seconds
    Reply:

    To comment on this video please connect a HIVE account to your profile: Connect HIVE Account

    More Videos

    03:51
    32 views 4 years ago $
    00:26
    3 views 4 months ago $
    00:39
    2 views 3 years ago $
    03:34
    12 views a month ago $