Skip to content
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

Return boolean value based on login prompt being shown or not #106

Merged

Conversation

xserxses
Copy link
Contributor

Summary

While implementing Simplified Login in News Media, we want to prompt user once per time.
With current API, it's not possible to get feedback on if prompt was shown or not.
This simple PR is changing this adding boolean value on requestLoginPrompt.

*/
@JvmOverloads
suspend fun requestLoginPrompt(
context: Context,
supportFragmentManager: FragmentManager,
isCancelable: Boolean = true
) {
) : Boolean {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to have tests for that.

@pklawikowski-schibsted pklawikowski-schibsted merged commit 4aee789 into master Jan 29, 2024
3 checks passed
@pklawikowski-schibsted pklawikowski-schibsted deleted the xserxses/return-value-from-request-login-prompt branch January 29, 2024 13:37
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.

None yet

2 participants