refacto(auth): improve type + remove complexity (#9949)
- Improve type - Remove unnecessary code - Fix the issue that prevents the usage of invitations when a user signs in with social media. - Add Microsoft icon for sso list page
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
/* @license Enterprise */
|
||||
|
||||
import { IconComponent, IconGoogle, IconKey } from 'twenty-ui';
|
||||
import {
|
||||
IconComponent,
|
||||
IconGoogle,
|
||||
IconKey,
|
||||
IconMicrosoftOutlook,
|
||||
} from 'twenty-ui';
|
||||
|
||||
export const guessSSOIdentityProviderIconByUrl = (
|
||||
url: string,
|
||||
@ -9,5 +14,9 @@ export const guessSSOIdentityProviderIconByUrl = (
|
||||
return IconGoogle;
|
||||
}
|
||||
|
||||
if (url.includes('microsoft')) {
|
||||
return IconMicrosoftOutlook;
|
||||
}
|
||||
|
||||
return IconKey;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user