Skip to content

Latest commit

 

History

History

Google

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

GoogleAuthenticator

Auth provider for social login with Google.

Setup

Please read official documentation from Google for all the details around the setup and integration.

Usage

// initialization
let authenticator = GoogleAuthenticator()

// signIn user
let result = try await authenticator
  .signIn(from: <view-controller-instance>)

// get authentication status
let state = authenticator.isAuthenticated

// signOut user
authenticator.signOut() // all provider data regarding the use auth is cleared at this point

// handle url
authenticator.canOpenUrl(_: application: options:) // call this from `application:openURL:options:` in UIApplicationDelegate