Swiftpack.co -  Package - PM-Auth2-Gateway/iOS-SDK
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
PM-Auth2-Gateway/iOS-SDK
Authentication Swift Package
.package(url: "https://github.com/PM-Auth2-Gateway/iOS-SDK.git", from: "1.0.3")

AuthPM

Created by Kononenko Yevhen and Hrytsun Yaroslav

Flexible Swift Package Manager for Google/Facebook Authorization.
We create this SPM without Google and Facebook SDK.

Screenshots

Main View Second Screen View

Installation

  • Insert url of this SPM in your XCode Project with Open → Swift Package → Add Package Dependency.
    Import this library to your ViewController with:
import AuthPM
  • Then you should initiate an instance:
let authPM = AuthPM(appId: 'YOUR_APP_ID', deepLinkingScheme: 'YOUR_URL_SCHEME')
  • After all of this operations call this function in your ViewController viewDidLoad.
AuthPM.getAuthButton()

Details

This implementation uses ASWebAuthenticationSession to securely show a web view pointing to the Facebook and Google.

Dependencies

  • PMNetworking — unique Networking Library (Swift Package)
  • XCode 12.4
  • Swift 5.4

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco