Skip to content

Release: v2.2.0

Latest
Compare
Choose a tag to compare
@moeodeh3 moeodeh3 released this 27 Jun 21:06
c108fe5

What's Changed

✨ New Functionality

  • Added authState to TurnkeyContext for synchronously tracking authentication state and determining the appropriate screen on app load.
  • Added refreshSession() to manually refresh the session. Defaults to the selected session but accepts an optional sessionKey.
  • Added updateUserEmail(email:verificationToken:) and updateUserPhoneNumber(phone:verificationToken:) for updating user contact details. These methods support optional verification tokens to mark the fields as verified, and allow deletion by passing an empty string.
  • Added support for automatically refreshing sessions before expiry when the app is active by passing the optional refreshedSessionTTLSeconds parameter to createSession(). This controls the duration of refreshed sessions and must be at least 30 seconds.

🛠 Fixes

  • Fixed a scheduling issue where expiry timers were not firing correctly while the app was active in the foreground.