Skip to content

Conversation

@ThisIsMissEm
Copy link
Contributor

The authenticate call not returning the Login means that if you need to use the current session for something (e.g., performing another operation before storing the login in the place that other OAuthenticators access through LoginStorage), then you need to do a rather messy work around with LoginStorage to capture the session.

We do however already have the session here, we were just discarding it. This change returns the value, but marks it as a discardableResulthttps://www.avanderlee.com/swift/discardableresult/

@mattmassicotte
Copy link
Contributor

Great idea!

@mattmassicotte mattmassicotte merged commit 622c1af into ChimeHQ:main Dec 23, 2025
6 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants