Skip to content

povio/PovioKitAuthGoogle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PovioKit

Welcome to PovioKitAuthGoogle.
An auth provider for social login with Google.

Installation

Swift Package Manager

  • In Xcode, click File -> Add Packages...
  • Insert https://github.com/poviolabs/PovioKitAuthGoogle in the Search field.
  • Select a desired Dependency Rule. Usually "Up to Next Major Version" with "1.0.0".
  • Select "Add Package" button and check PovioKitAuthGoogle.
  • Select "Add Package" again and you are done.

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

License

PovioKitAuthGoogle is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages