                     
                     if error == nil {
                         self.accessToken = (result?.accessToken)!
-                        _ = completion(nil, accessToken);
+                        _ = completion(nil, self.accessToken);
                         
                         
                     } else {

    func connectToGraph(scopes: [String],
                        completion:@escaping (_ error: ApplicationConstants.MSGraphError?, _ accessToken: String) -> Bool)  {
        
        var accessToken = String()
        do {
            if let initError = self.lastInitError {
                if initError.lengthOfBytes(using: String.Encoding.ascii) > 1 {

                
                authenticationProvider.acquireToken(forScopes: scopes) { (result, error) in
                    if error == nil {
                        self.accessToken = (result?.accessToken)!
                        var _ = completion(nil, self.accessToken);
                        
                        
                    } else  {
