OAuthenticator
OAuthenticator copied to clipboard
Unable to initialise using configuration (data race safety error)
I have the following code in my client:
let configuration = Authenticator.Configuration(
appCredentials: credentials,
loginStorage: loginStorage,
tokenHandling: FixedGitHub.OAuthAppTokenHandling(),
mode: mode,
authenticationStatusHandler: authenticationStatusHandler
)
let authenticator = Authenticator(config: configuration)
Unfortunately, under Xcode 16.0/Swift 6.0, I get the following error:
Sending 'self'-isolated 'configuration' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses