Skip to content

Authentication failing with .pem file #3

@created-by-varun

Description

@created-by-varun

Getting the Error code 13 and user authentication is failing (correct .pem file is downloaded from the dashboard and steps listed in the readme file are followed)

    if (data!=nil) {
        [[IHSDKCloudUser commandGetSDKUserInstance] commandSDKUserValidationWithLicense:data UserDeviceAccess:^(NSArray *DeviceAccessArray) {
            NSLog(@"DeviceAccessArray :%@",DeviceAccessArray);
        } UserValidationSuccess:^(UserAuthenResult result) {
            if (result==UserAuthen_LoginSuccess || result==UserAuthen_RegisterSuccess|| result==UserAuthen_TrySuccess ) {
                 [self.bridge.eventDispatcher sendDeviceEventWithName:kEvent_Authenticate_Result body:@{@"access":@1}];
            }else{   
                 [self.bridge.eventDispatcher sendDeviceEventWithName:kEvent_Authenticate_Result body:@{@"access":@0}];
            }
        } DisposeErrorBlock:^(UserAuthenResult errorID) {
            // code flow coming here with error code 13
             [self.bridge.eventDispatcher sendDeviceEventWithName:kEvent_Authenticate_Result body:@{@"access":@0}];
        }];
        
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions