Manos Chorianopoulos

fix jwt check

......@@ -8225,9 +8225,10 @@ static void distanceFunc(sqlite3_context *context, int argc, sqlite3_value **arg
NSLog(@"Beacon scanning is disabled");
}
if ([applicationVariables objectForKey:WL_AUTHENTICATION]) {
NSString *authValue = [applicationVariables objectForKey:WL_AUTHENTICATION];
if (authValue && [authValue isEqualToString:@"JWT"]) {
id authValueObject = [applicationVariables objectForKey:WL_AUTHENTICATION];
if (authValueObject && authValueObject != [NSNull null]) {
NSString *authValue = (NSString *)authValueObject;
if ([authValue isEqualToString:@"JWT"]) {
// AUTHENTICATION key exists and its value is "JWT"
[defaults setBool:YES forKey:WL_IS_JWT_ENABLED];
} else {
......