-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCheckAuthViewController.swift
More file actions
45 lines (33 loc) · 1.02 KB
/
CheckAuthViewController.swift
File metadata and controls
45 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// CheckAuthViewController.swift
// Absinthe-iOS
//
// Created by Alyssa Torres on 10/24/16.
// Copyright © 2016 AppDelegates. All rights reserved.
//
import UIKit
import PromiseKit
import PKHUD
class CheckAuthViewController: UIViewController {
// override func viewDidLoad() {
// super.viewDidLoad()
//
//
// }
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated);
//HUD.show(.labeledProgress(title: "Contacting OG Cloud", subtitle: "Please Wait"))
OGCloud.sharedInstance.checkJWT()
.then{ _ -> Void in
//HUD.flash(.success)
self.performSegue(withIdentifier: "fromCheckAuthToMainTabs", sender: self)
}
.catch{ err in
//HUD.flash(.error)
self.performSegue(withIdentifier: "fromCheckAuthToLR", sender: self)
}
}
override var preferredStatusBarStyle : UIStatusBarStyle {
return .lightContent
}
}