- SIWF iOS SDK Source Code + Demo App
- Swift Package:
https://github.com/ProjectLibertyLabs/siwf-sdk-ios.git
- iOS 15.0 or later
- Swift Package Manager
You can install the SIWF SDK via Swift Package Manager (SPM):
- Open Xcode and navigate to File → Add Packages.
- Enter the repository URL:
https://github.com/ProjectLibertyLabs/siwf-sdk-ios.git - Select the latest stable version and add it to your project.
To create a SIWF Button, use the Siwf.createSignInButton method:
import Siwf
Siwf.createSignInButton(mode: .primary, authRequest: authRequest)authRequest requires the Signed Request Payload in either base64url encoded or structured form.
Use onOpenURL and Siwf.handleRedirectUrl to handle deep links and retrieve the authentication code.
On your backend service, process the authorization code and start your session.
Resources: