Linkedin Login in Flutter

Updated 7 December 2023

Save

In this blog, we are going to learn about “LinkedIn Login” in a flutter.

OAuth 2.0 is used by LinkedIn, the largest and most reliable source of professional identities, for API authentication and user permission. An access token is made available after successful login and can be used to retrieve member profiles and emails.

I’ll show you how to set up LinkedIn sign-in on your Flutter and retrieve pertinent data using the LinkedIn API in this tutorial.

sign in using Linkedin

Check out more about our Flutter app development.

Dependency

The Dependency Section mentions, that these libraries to use the most recent version of the package

The below command runs in the terminal of the Android studio after adding the dependency.

Required Params

Get clientId and clientSecret when creating an app on https://www.linkedin.com/developers/apps/new for the authentication procedure.

Samples

After the completed process we are adding the Call LinkedIn authorization and get the user object.

Alternatively, you can just retrieve the permission code (clientSecret is not necessary for this widget)

In the case of the logout user(to the clear session from web view) then we are sending the ‘true’ value for destroySession in LinkedInUserWidget or LinkedInAuthCodeWidget and also destroy the data from a local database.

Linkedin user widget

You can create a LinkedIn user widget and use these properties to display that user information.

In this preview, you will see LinkedIn login and logout buttons. these widgets are default widgets provided by the LinkedIn library.

Conclusion

We learned how to use the LinkedIn sign-in our app and get user information for use in an application.

Visit the link for additional information on the LinkedIn login in the Flutter application

Thanks for reading this blog. You can also check other blogs from here for more knowledge.

Always be ready for learning 🙂

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home