Younify Connect SDK Sample
----------------------------

The Younify Connect SDK Sample provides a basic example of an application 
utilizing the Younify Connect SDK. This sample is provided for demonstration
purposes only and does not cover every use case, nor does it handle all errors 
appropriately. It is not of production quality and has absolutely no warranty.

Requirements
--------------
1. Xcode 15.2 or later.
2. YounifyConnectSDK.xcframework version matching the sample version.
3. Younify Connect partner backend api key.

Getting Started
-----------------
1. Extract the Younify Connect SDK sample zip.
2. Extract the Younify Connect SDK xcframework zip into the sample subfolder.
3. Open the YounifyConnectSDKSample.xcodeproj in Xcode.
4. Open AppDelegate.m and set the options.key to your sdk key.
5. Open Sample/TokenManager.m and implement the renewTokens method.
   * This method should make requests to your own servers that use your 
     Younify Connect backend api key to create a new Younify Connect user 
     and return their access token and refresh token, or if the user already
     exists, to recreate the tokens.
  ** For demonstration purposes, this logic could be implemented in the app 
     directly, but that must NOT be done in a production app as the backend 
     key could be leaked. Alternatively, if you pre-create a Younify Connect
     user, you can set the options.accessToken and options.refreshToken in
     AppDelegate.m.
6. Build and run the sample.

Notes
-------
 * Production level apps MUST implement the YCSTokenDelegate methods 
   appropriately. Sample/TokenManager.m is a rudimentary and incomplete
   example implementation. A proper implementation should store tokens 
   in key chain in a non-cloud synchronized manner and must send requests to
   your own backend for token management in order to keep your Younify Connect
   backend api key private.