mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
Attempt
This commit is contained in:
1 parent
e491182054
commit
3cd7ac1928
2 files changed
+11
-2
No files matched your search
@@ -52,6 +52,7 @@ export const AccountIdentities = () => {
|
||||
const router = useRouter()
|
||||
|
||||
const { data, isPending: isLoading, isSuccess } = useProfileIdentitiesQuery()
|
||||
console.log(data)
|
||||
|
||||
const enabledProviders = useEnabledIdentityProviders()
|
||||
const connectableExternalProviders = useMemo(
|
||||
@@ -142,8 +143,8 @@ export const AccountIdentities = () => {
|
||||
{isSuccess && (
|
||||
<div className="divide-y">
|
||||
{identities.map((identity) => {
|
||||
const { identity_id, provider } = identity
|
||||
const username = identity.identity_data?.user_name
|
||||
const { identity_id, identity_data, provider } = identity
|
||||
const username = identity_data?.user_name
|
||||
const providerDisplay = getProviderDisplay(provider)
|
||||
const providerName = providerDisplay.displayName
|
||||
const configuredProvider = getConfiguredExternalProvider(provider)
|
||||
|
||||
@@ -70,6 +70,14 @@ export function getProviderDisplay(provider: string): IdentityProviderDisplay {
|
||||
}
|
||||
}
|
||||
|
||||
if (provider.startsWith('custom:')) {
|
||||
return {
|
||||
id: provider,
|
||||
displayName: provider.replace('custom:', ''),
|
||||
iconPath: `${BASE_PATH}/img/icons/saml-icon.svg`,
|
||||
}
|
||||
}
|
||||
|
||||
if (provider.startsWith('sso')) {
|
||||
return {
|
||||
id: provider,
|
||||
|
||||
Reference in new issue
Block a user