OAuthenticator icon indicating copy to clipboard operation
OAuthenticator copied to clipboard

Unable to initialise using configuration (data race safety error)

Open tonyarnold opened this issue 1 year ago • 0 comments

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

tonyarnold avatar Oct 04 '24 05:10 tonyarnold