Auth0.swift
Auth0.swift copied to clipboard
What is the correct way to work with CredentialsManager in Swift Concurrency?
Checklist
- [X] The issue can be reproduced in the Auth0.swift sample app (or N/A).
- [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Description
The only information I can find on this is a forum post from 2 years ago in which we're directed to Github, but the option to ask a question here redirects us back to the forum so I'm opening it here as a bug https://community.auth0.com/t/credentialsmanager-credentials-and-sendability/95271
Simply initialising CredentialsManager causes strict concurrency checking to surface a warning that this code will no longer compile in Swift 6. What's the recommended way to work with CredentialsManager with strict concurrency checking enabled or in Swift 6?
Reproduction
Initialise CredentialsManager
Additional context
No response
Auth0.swift version
2.8.0
Platform
iOS
Platform version(s)
16.0
Xcode version
15.4
Package manager
Swift Package Manager