         if (error == nil) {
             let idToken = user.authentication.idToken // Safe to send to the server
             if let unwrappedAuthContext = authContext {
-                unwrappedAuthContext.submitAuthenticationChallengeAnswer([GoogleAuthenticationManager.ID_TOKEN_KEY: idToken!])
+                unwrappedAuthContext.submitAuthenticationChallengeAnswer([GoogleAuthenticationManager.ID_TOKEN_KEY: idToken! as AnyObject])
             }
         } else {
             authContext?.submitAuthenticationFailure(nil)

    
    public var localVC : UIViewController?
    private var authContext: AuthenticationContext?
    static let logger = Logger.logger(forName: "bmssdk.security.GoogleAuthenticationManager")
    
    public static let sharedInstance:GoogleAuthenticationManager = GoogleAuthenticationManager()
    

    }
    
    
    public func logout(completionHandler: BMSCompletionHandler?){
        GIDSignIn.sharedInstance().disconnect()
        GIDSignIn.sharedInstance().signOut()
        MCAAuthorizationManager.sharedInstance.logout(completionHandler)
