CredentialsManager.credentials and sendability

We are using the Credentials manager in a @MainActor class. But the credentials(…) method includes a parameter named parameters that is of type [String:Any] and is thus not-sendable so Targeted concurrency checking produces a warning “Non-sendable type ‘[String : Any]’ exiting main actor-isolated context in call to non-isolated instance method ‘credentials(withScope:minTTL:parameters:headers:)’ cannot cross actor boundary”.

In addition the Credentials class is not sendable. Not sure if it could be or not.

Has any work been done with sendability with the Auth0 Swift API?

Hey there!

In order to handle that most effectively I would encourage you to raise a GitHub issue in our Swift SDK repo to talk directly about it with the maintainers. Once you have a link to it, make sure to share it here so we can ping them. Thank you!