   }
 
   func setNavigationBar() {
-    navBar.translatesAutoresizingMaskIntoConstraints = false
     view.addSubview(navBar)
 
     let guide = view.safeAreaLayoutGuide
-    navBar.leadingAnchor.constraint(equalTo: guide.leadingAnchor).isActive = true
-    navBar.trailingAnchor.constraint(equalTo: guide.trailingAnchor).isActive = true
-    navBar.topAnchor.constraint(equalTo: guide.topAnchor).isActive = true
-    navBar.heightAnchor.constraint(equalToConstant: 44).isActive = true
+    navBar.snp.makeConstraints {
+      $0.leading.trailing.equalTo(guide)
+      $0.top.equalTo(guide.snp.top)
+      $0.height.equalTo(44)
+    }
 
     let navItem = UINavigationItem(title: "")
     let doneItem = UIBarButtonItem(barButtonSystemItem: .done, target: nil, action: #selector(done))

  }

  func loadAddressURL() {
    guard let url = targetURL else {
      return
    }

    let urlRequest = URLRequest(url: url)
    wkWebView.load(urlRequest)

extension FitbitAuthorizeViewController: WKNavigationDelegate {
  func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction,
               decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
    if let url = navigationAction.request.url,
      let fitBitUrl = URL(string: AppConfig.fitbitCallbackUri),
      url.host == fitBitUrl.host {
