SKYLoginCustomTokenOperation

@interface SKYLoginCustomTokenOperation : SKYOperation

SKYLoginCustomTokenOperation is used to send a login with custom token request to the server.

  • Returns a custom token in the operation.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull customToken;

    Swift

    var customToken: String { get }
  • Gets or sets the block that is called when the login operation is completed.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) void (^_Nullable)
        (SKYRecord *_Nullable, SKYAccessToken *_Nullable, NSError *_Nullable)
            loginCompletionBlock;

    Swift

    var loginCompletionBlock: ((SKYRecord?, SKYAccessToken?, Error?) -> Void)? { get set }
  • Creates a login with custom token operation with the specified custom token.

    Declaration

    Objective-C

    + (nonnull instancetype)operationWithCustomToken:
        (nonnull NSString *)customToken;

    Swift

    convenience init(customToken: String)

    Parameters

    customToken

    custom token for the login operation.