Files
supabase/apps/studio/components/layouts/AuthenticationLayout.tsx
T
Alaister Young 31455448b0 chore: toast auth initialization errors (#37037)
* chore: toast auth initialization errors

* Redirect back to sign in if authentication fails

* add debug logs

* remove debug logs

* debug gotrue

* remove gotrue debug
2025-07-15 17:57:32 +08:00

18 lines
614 B
TypeScript

import { PropsWithChildren } from 'react'
import { AppBannerWrapper } from 'components/interfaces/App'
import { AppBannerContextProvider } from 'components/interfaces/App/AppBannerWrapperContext'
export const AuthenticationLayout = ({ children }: PropsWithChildren<{}>) => {
return (
<AppBannerContextProvider>
<div className="flex flex-col min-h-screen w-screen">
<AppBannerWrapper />
<div className="flex flex-1 w-full overflow-y-hidden">
<div className="flex-grow h-full overflow-y-auto">{children}</div>
</div>
</div>
</AppBannerContextProvider>
)
}