mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
* Add flags for policies, third party auth, and manual linking + providers in sign in page * Add flag for rate limitm page * Add UnknownInterface components * Update comment * Flip flags to true * Add flags for realtime policies and reports page * Temp * Add flag for sign in providers page * Add flag for stripe wrapper * Add flag for custom domains * Add flag for dedicated ipv4 address addon * Add empty state for realtime policies * Add empty state for reports page * Add flag for disable legacy JWT keys section * Add flag for legacy jwt keys * nit * Remove ConnectionStringMoved call out * Add flag for project settings log drains * Add flag for subscription link in project settings * Deprecate settings/auth page and redirect directly to auth page * Flip back flags * Add flags for account preferences analytics marketing and account deleetion * Remove 'table_editor:enable_rls_toggle' flag and revert UI changes * Remove 'authentication:policies' flag and revert UI changes * Add flags for cmd K routes * Add flags for instance size in infra settings * Small refactor to DisplayApiSettings, decouple ToggleLegacyApiKeysPanel from it * Have project_connection:javascript_example toggle code example title to TS * add flag for templates dropdown in logs explorer * UsesOverview only show link to providers page if providers is enabled * API Docs UserManagement to only include docs on third party auth if providers is enabled * Hide instance size on project card if flag is off * Remove links to billing under org usage if billing:all is off * Fix
92 lines
2.5 KiB
TypeScript
92 lines
2.5 KiB
TypeScript
import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
|
|
import ContentSnippet from '../ContentSnippet'
|
|
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
|
|
import type { ContentProps } from './Content.types'
|
|
|
|
const UserManagement = ({ language, apikey, endpoint }: ContentProps) => {
|
|
const { authenticationSignInProviders } = useIsFeatureEnabled([
|
|
'authentication:sign_in_providers',
|
|
])
|
|
return (
|
|
<>
|
|
<ContentSnippet selectedLanguage={language} snippet={DOCS_CONTENT.userManagement} />
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.signUp}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.emailLogin}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.magicLinkLogin}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.phoneLogin}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.smsLogin}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.smsVerify}
|
|
/>
|
|
{authenticationSignInProviders && (
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.oauthLogin}
|
|
/>
|
|
)}
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.user}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.forgotPassWordEmail}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.updateUser}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.logout}
|
|
/>
|
|
<ContentSnippet
|
|
selectedLanguage={language}
|
|
apikey={apikey}
|
|
endpoint={endpoint}
|
|
snippet={DOCS_CONTENT.emailInvite}
|
|
/>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default UserManagement
|