Flutter: Google sign-in with REST API (JWT)

Yusuf Biberoğlu
2 min readAug 11, 2024

--

Flutter app that allows users to sign in with their Google accounts, leveraging a REST API built with Symfony framework for authentication and JSON Web Token management.
This JSON Web Token is securely stored using flutter_secure_storage and allows the Flutter app to send requests and access resources.

We will be using several essential Flutter packages:

  • dio for making HTTP requests to our REST API.
  • flutter_secure_storage for securely storing authentication tokens.
  • package_info_plus to access app information.
  • provider for state management.
  • google_sign_in to facilitate Google authentication.

My Udemy Course;

Flutter: Google Sign In with REST API, JWT

https://www.udemy.com/course/flutter-google-sign-in-with-rest-api-jwt/?referralCode=39B955A0C1C5AAFA8A93

Discount Code:

https://www.udemy.com/course/flutter-google-sign-in-with-rest-api-jwt/?couponCode=B6728A76327637F4BEE6

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

REST API

Symfony application using Google OAuth for authentication. When a user signs in through Google, our system will check if the user already exists in our database. If not, it will create a new user account. Once authenticated, either as a new or existing user, our application will generate a JSON Web Token (JWT). Built on the API Platform.

https://www.udemy.com/course/google-oauth-php-symfony-api-platform-jwt/?referralCode=67A58BBAE3151CDC1255

--

--