Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 753 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 753 Bytes

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