[Free] ⭐ Extension to sign-in with Google account

Google Sign-In Extension

Overview

The SignInWithGoogle extension for MIT App Inventor created by MrKoder provides a convenient way for developers to implement Google Sign-In functionality in their Android applications. This extension facilitates the process of obtaining a user's consent, exchanging device codes for access tokens, and retrieving user profile information from Google APIs.

Example Preview

Blocks

Features

  • Request device code from Google OAuth2 API.
  • Exchange device code for access token in Google OAuth.
  • Request user profile information from Google People API.

Installation

To use the SignInWithGoogle extension, follow these steps:

  1. You can see this video to get your credentials (Client-ID, Client-Secret):
  1. Download the :arrow_down:AIA file (227.5 KB) If you want .

  2. Or you can Select "Import Extension" and choose the :arrow_down:SignInWithGoogle.aix (20.8 KB) file.

  3. The extension will be added to your palette, and you can now use its blocks in your project.

Properties

ClientId

  • Description: Set or get the client ID used for Google Sign-In.
  • Type: String

ClientSecret

  • Description: Set or get the client secret associated with the client ID.
  • Type: String

RefreshToken

  • Description: Set or get the refresh token required for token refreshing.
  • Type: String

AccessToken

  • Description: Set or get the access token obtained after successful sign-in.
  • Type: String

Sign-in process

files

:arrow_down:SignInWithGoogle.aix (20.8 KB)
:arrow_down:AIA file (227.5 KB)

Donate

if you liked my extension you can support me

7 Likes

Very useful extension

1 Like

I put ClientId and ClientSecret in the file, but the program does not work