Created
August 15, 2025 12:57
-
-
Save jacobsapps/731ddf8cc33c40c1a43e09911a07307e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actor AuthServiceImpl: AuthService { | |
func getBearerToken() async throws -> String { | |
if cachedToken.isValid { | |
return cachedToken | |
} | |
return try await authAPI.refreshCredentials() <-- suspension point | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment