Library for quick register or login into your application using third party accounts. It has two main modules - ThirdPartyAuth and ThirdPartyAuthUI.
- ThirdPartyAuth module include components for auth / register user's in your app with their third party accounts. After getting response from this module you'll need to sent all necessary data to your backend-side and process them there.
- ThirdPartyAuthUI is a set of components that you can integrate into your app, if you don't need custom UI.
- Sign In with Apple
- Google Sign-In
- VK ID
Before using this library you'll need to check, is your project matches all needed auth types requirements.
Detailed info you can find here.
- Open your Xcode project and select
File > Add Packages...
- Enter repository URL
https://github.com/AdmiralBizon/ThirdPartyAuth
- Select branch
main
This module has a single public interface - ThirdPartyAuthService
, included all main operations.
Sign In:
ThirdPartyAuthService.sharedInstance.signIn(with: type)
Sign Out:
ThirdPartyAuthService.sharedInstance.signOut(with: type) { isSignedOut in
// do something useful
}
Here type
parameter is one of ThirdPartyAuthService
current configuration supported types. For example, .google
.
Detailed usage info of this module you can find here.
It's a set of components that you can integrate into your app, if you don't need custom UI.
Library has two main UI-components:
- Title view of third party auth section
- Button container - main component of ThirdPartyAuthUI, included block with auth buttons of all needed auth types
Detailed usage info of this module you can find here.
The full list of changes can be found in this file.