mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
The support form was exempted from the highest AAL check (since the original MFA rollout in #16813) so that users stuck on the MFA challenge could still file a ticket. The platform API now rejects AAL1 sessions with `403 Insufficient AAL: MFA required`, so for those users the form is simply broken — it renders an error toast and the submit would fail too. This requires AAL2 on `/support/new`, so an AAL1 session gets redirected to the MFA challenge and returns to the form afterwards, and removes the links to the support form from the MFA screen. A dedicated flow for users who can't get past MFA to reach us is being worked on separately and should be out soon! Fixes FE-4218 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added an “Email support” action for multi-factor authentication issues, with a prefilled subject line. - Provided clearer guidance when authentication factors cannot be retrieved. - **Bug Fixes** - Improved authentication error handling based on the session’s assurance level. - Reduced confusing permission and error messages for lower-assurance sessions. - Updated support page access to use standard authentication behavior for a more consistent sign-in experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
18 lines
560 B
TypeScript
18 lines
560 B
TypeScript
import { SupportFormPage } from '@/components/interfaces/Support/SupportFormPage'
|
|
import { AppLayout } from '@/components/layouts/AppLayout/AppLayout'
|
|
import { DefaultLayout } from '@/components/layouts/DefaultLayout'
|
|
import { withAuth } from '@/hooks/misc/withAuth'
|
|
import type { NextPageWithLayout } from '@/types'
|
|
|
|
const SupportPage: NextPageWithLayout = () => {
|
|
return <SupportFormPage />
|
|
}
|
|
|
|
SupportPage.getLayout = (page) => (
|
|
<AppLayout>
|
|
<DefaultLayout hideMobileMenu>{page}</DefaultLayout>
|
|
</AppLayout>
|
|
)
|
|
|
|
export default withAuth(SupportPage)
|