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

fix: Update supa_socials_auth.dart to include slackOidc and linkedInOidc OAuthProvider value mappings #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Oskar-Nilsen-Roos
Copy link

What kind of change does this PR introduce?

fix

What is the current behavior?

Passing OAuthProvider.linkedinOidc or OAuthProvider.slackOidc provides no icon and no color styling.

What is the new behavior?

Provides the same existing styling & icon for linkedinOidc and slackOidc as their non-oidc counterparts.

Additional context

Related to other PR in supabase-flutter to add slackOidc provider option: supabase/supabase-flutter#1066

Comment on lines +61 to +67
String get capitalizedName {
String modifiedName = name;
if (name.endsWith("Oidc")) {
modifiedName = name.substring(0, name.length - 4);
}
return modifiedName[0].toUpperCase() + modifiedName.substring(1);
}
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep the same labelText getter name, but modify the definition in a way that the Oidc is removed.

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