 }
 
 /**
+ Get Time Out
+ */
+private func getTimeout(_ expiration:Double) -> TimeInterval{
+    let startDate = Date(timeIntervalSince1970: expiration/1000)
+    let timeout = startDate.timeIntervalSince(Date())
+    return TimeInterval(Int64(timeout))
+}
+
+/**
  Set Token SDK
  */
 private func setTokenSDK(_ data:Auth){

            refreshAuthToken(result)
        }
    }

}

/**

 @param params.
 @return Promise<User>.
 */
public func getUser(_ host:String, token:String) -> Promise<User>{
    expLogging("EXP GET USER  : \(token)")
    tokenSDK = token
    refreshAuthToken(token)
    if let callBack = authConnection[Config.UPDATE]{
        callBack(Config.UPDATE)
    }
