LCUserAuthDataLoginOption

Objective-C

@interface LCUserAuthDataLoginOption : NSObject

/**
 Third platform.
 */
@property (nonatomic, nullable) LeanCloudSocialPlatform platform;

/**
 UnionId from the third platform.
 */
@property (nonatomic, nullable) NSString *unionId;

/**
 Set true to generate a platform-unionId signature.
 if a LCUser instance has a platform-unionId signature, then the platform and the unionId will be the highest priority in auth data matching.
 @Note must cooperate with platform & unionId.
 */
@property (nonatomic) BOOL isMainAccount;

/**
 Set true to check whether already exists a LCUser instance with the auth data.
 if not exists, return an error.
 */
@property (nonatomic) BOOL failOnNotExist;

@end

Swift

class LCUserAuthDataLoginOption : NSObject

Undocumented

  • Third platform.

    Declaration

    Objective-C

    @property (nonatomic, nullable) LeanCloudSocialPlatform platform;

    Swift

    var platform: LeanCloudSocialPlatform? { get set }
  • UnionId from the third platform.

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSString *unionId;

    Swift

    var unionId: String? { get set }
  • Set true to generate a platform-unionId signature. if a LCUser instance has a platform-unionId signature, then the platform and the unionId will be the highest priority in auth data matching. @Note must cooperate with platform & unionId.

    Declaration

    Objective-C

    @property (nonatomic) BOOL isMainAccount;

    Swift

    var isMainAccount: Bool { get set }
  • Set true to check whether already exists a LCUser instance with the auth data. if not exists, return an error.

    Declaration

    Objective-C

    @property (nonatomic) BOOL failOnNotExist;

    Swift

    var failOnNotExist: Bool { get set }