-
Notifications
You must be signed in to change notification settings - Fork 122
fix(auth): Prevent auth calls from processing until configured or errored #2402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -197,6 +197,22 @@ internal class RealAWSCognitoAuthPlugin( | |||
} | |||
} | |||
|
|||
internal suspend fun suspendWhileConfiguring() { | |||
return suspendCoroutine { continuation -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need the latch in initialize()
above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I wanted to keep that to still throw on an auth plugin configuration error. These checks have different purposes.
Issue #, if available:
#2341
Description of changes:
How did you test these changes?
(Please add a line here how the changes were tested)
Documentation update required?
General Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.