Skip to content
Snippets Groups Projects
Commit 57f8d461 authored by Oliver Wiese's avatar Oliver Wiese
Browse files

Add and update AppAuth

parent 71235d2a
No related branches found
No related tags found
3 merge requests!58Onboarding screens swift ui merge dev,!55WIP: Resolve "UI for gamifcation & stats",!32Resolve "Move to iOS 13"
......@@ -97,7 +97,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
if url.absoluteURL.absoluteString.hasPrefix("com.googleusercontent.apps.459157836079-csn0a9p3r8p7q6216fn5u7a6vcum80gn") {
if let currentAuthorizationFlow = EmailHelper.singleton().currentAuthorizationFlow {
if currentAuthorizationFlow.resumeAuthorizationFlow(with: url) {
if currentAuthorizationFlow.resumeExternalUserAgentFlow(with: url) {
EmailHelper.singleton().currentAuthorizationFlow = nil
return true
}
......
......@@ -27,7 +27,7 @@
+ (EmailHelper *_Nonnull)singleton;
@property(nonatomic, strong, nullable) id<OIDAuthorizationFlowSession> currentAuthorizationFlow;
@property(nonatomic, strong, nullable) id<OIDExternalUserAgentSession> currentAuthorizationFlow;
@property(nonatomic, nullable) GTMAppAuthFetcherAuthorization *authorization;
- (void)doEmailLoginIfRequiredOnVC:(UIViewController*_Nullable)vc completionBlock:(dispatch_block_t _Nullable )completionBlock;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment