Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add visionOS support #821

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
renaming callback to completion
  • Loading branch information
frogcjn committed Mar 12, 2024
commit f7365a1878599c139447868377069d4095b34ca2
6 changes: 3 additions & 3 deletions Source/AppAuth/iOS/OIDAuthState+IOS.m
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ @implementation OIDAuthState (IOS)
#endif // TARGET_OS_MACCATALYST
return [self authStateByPresentingAuthorizationRequest:authorizationRequest
externalUserAgent:externalUserAgent
callback:callback];
completion:callback];
}

+ (id<OIDExternalUserAgentSession>)
@@ -59,7 +59,7 @@ @implementation OIDAuthState (IOS)
#endif // TARGET_OS_MACCATALYST
return [self authStateByPresentingAuthorizationRequest:authorizationRequest
externalUserAgent:externalUserAgent
callback:callback];
completion:callback];
}

#if !TARGET_OS_MACCATALYST
@@ -69,7 +69,7 @@ @implementation OIDAuthState (IOS)
OIDExternalUserAgentIOS *externalUserAgent = [[OIDExternalUserAgentIOS alloc] init];
return [self authStateByPresentingAuthorizationRequest:authorizationRequest
externalUserAgent:externalUserAgent
callback:callback];
completion:callback];
}
#endif // !TARGET_OS_MACCATALYST

6 changes: 3 additions & 3 deletions Source/AppAuth/macOS/OIDAuthState+Mac.m
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ @implementation OIDAuthState (Mac)
OIDExternalUserAgentMac *externalUserAgent = [[OIDExternalUserAgentMac alloc] initWithPresentingWindow:presentingWindow];
return [self authStateByPresentingAuthorizationRequest:authorizationRequest
externalUserAgent:externalUserAgent
callback:callback];
completion:callback];
}
+ (id<OIDExternalUserAgentSession>)
authStateByPresentingAuthorizationRequest:(OIDAuthorizationRequest *)authorizationRequest
@@ -45,7 +45,7 @@ @implementation OIDAuthState (Mac)
prefersEphemeralSession:prefersEphemeralSession];
return [self authStateByPresentingAuthorizationRequest:authorizationRequest
externalUserAgent:externalUserAgent
callback:callback];
completion:callback];
}

+ (id<OIDExternalUserAgentSession>)
@@ -54,7 +54,7 @@ @implementation OIDAuthState (Mac)
OIDExternalUserAgentMac *externalUserAgent = [[OIDExternalUserAgentMac alloc] init];
return [self authStateByPresentingAuthorizationRequest:authorizationRequest
externalUserAgent:externalUserAgent
callback:callback];
completion:callback];
}

@end