getIntegrationType() — supabase Function Reference
Architecture documentation for the getIntegrationType() function in ThirdPartyAuthForm.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 9f287a7b_e14d_5a58_d3e7_e68fdd750516["getIntegrationType()"] a8b0d122_606c_776f_0aa7_a4fa46d11298["IntegrationCard()"] a8b0d122_606c_776f_0aa7_a4fa46d11298 -->|calls| 9f287a7b_e14d_5a58_d3e7_e68fdd750516 861593ed_d4cc_b2ec_4f85_e0fbed9e8bf7["ThirdPartyAuthForm()"] 861593ed_d4cc_b2ec_4f85_e0fbed9e8bf7 -->|calls| 9f287a7b_e14d_5a58_d3e7_e68fdd750516 style 9f287a7b_e14d_5a58_d3e7_e68fdd750516 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/ThirdPartyAuthForm.utils.ts lines 14–40
export const getIntegrationType = (integration?: ThirdPartyAuthIntegration): INTEGRATION_TYPES => {
if (integration?.type === 'workos') {
return 'workos'
}
// TODO(hf): Move these to check type as well.
if (integration?.oidc_issuer_url?.startsWith('https://securetoken.google.com/')) {
return 'firebase'
}
if (integration?.oidc_issuer_url?.includes('amazonaws.com')) {
return 'awsCognito'
}
if (integration?.oidc_issuer_url?.includes('auth0.com')) {
return 'auth0'
}
if (
integration?.oidc_issuer_url?.includes('.clerk.accounts.dev') ||
integration?.oidc_issuer_url?.startsWith('https://clerk.')
) {
return 'clerk'
}
return 'custom'
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getIntegrationType() do?
getIntegrationType() is a function in the supabase codebase.
What calls getIntegrationType()?
getIntegrationType() is called by 2 function(s): IntegrationCard, ThirdPartyAuthForm.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free