Swift Bindings

Swift Bindings #

The CosyncAuth authentication system extends solid support for Apple’s Swift, neatly bundling the intricacies of Cosync REST API programming into a public Swift Package aptly named CosyncAuthSwift. Each API call finds expression as a Swift asynchronous function, allowing seamless integration into client Swift applications. Notably, a sample Swift application, CosyncAuthSwiftDemo, is generously shared as a public GitHub repository. Both the Swift Package and the demo application adhere to an open-source ethos, governed by the Apache license.

CosyncAuthSwift SDK #

You can locate the CosyncAuthSwift package at the following url

    https://github.com/Cosync/CosyncAuthSwift

To incorporate this package into your Swift application, be sure to add it using “File -> Add Package Dependencies…” in Xcode.

CosyncAuthSwiftDemo Application #

You can locate the CosyncAuthSwiftDemo application at the following url. To acquire this package on your local machine, utilize the git clone command for cloning.

    git clone git@github.com:Cosync/CosyncAuthSwiftDemo.git

To run this program, simply edit the constants.swift file, inputting the MongoDB and Cosync Portal keys linked to your application.