p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 275 forks source link

VisionOS issue #417

Closed djensenius closed 4 months ago

djensenius commented 4 months ago

I am getting

....../OAuth2/Sources/iOS/OAuth2Authorizer+iOS.swift:41:34 Cannot find type 'OAuth2SFViewControllerDelegate' in scope

with package 5.3.4 when trying to compile with VisionOS.

ossus-lib commented 4 months ago

Looks like that happened with #416

ossus-lib commented 4 months ago

Should have been fixed with 5.3.5.

djensenius commented 4 months ago

Aha, there we go. Unfortunately it's not opening a web view or safari window:

[Debug] OAuth2: Starting authorization
[Debug] OAuth2: No access token, checking if a refresh token is available
[Debug] OAuth2: Error refreshing token: I don't have a refresh token, not trying to refresh
[Debug] OAuth2: Opening authorize URL in system browser: https://REMOVED
[Debug] OAuth2: Cannot open authorize URL
ossus-lib commented 4 months ago

Have you tried using a ASWebAuthenticationSession, what is preferred anyway?

djensenius commented 4 months ago

Yep, that's what did it. Thank you!