OAuth2TokenStoreUserInfoTransforming

public protocol OAuth2TokenStoreUserInfoTransforming

Convenience functions to obtain and apply OAuth2TokenStore data.

Useful when sending the dictionary to a watch extension with WatchConnectivity.WCSession.transferUserInfo(_:)

  • Useful when you want to send OAuth2 token store data from your iPhone app to your companion watch app with WatchConnectivity.WCSession.transferUserInfo(_:)

    Declaration

    Swift

    func toUserInfo() throws -> [String : Any]

    Return Value

    a dictionary with seralized data of a OAuth2TokenStore

  • Useful when you received the user dictionary on your watch extension and you want to apply the information to your OAuth2TokenStore in your watch extension.

    Declaration

    Swift

    func apply(userInfo: [String : Any]) throws

    Parameters

    userInfo

    a dictionary with seralized data of a OAuth2TokenStore