- Added CompanyOffer component for submitting company offers with validation. - Integrated email sending functionality upon form submission. - Created a success page for company registration confirmation. - Introduced a reusable SuccessNotification component for displaying success messages. - Updated account update functionality with new fields and validation. - Enhanced user experience with back button and logo components. - Added necessary database migrations for account updates.
12 lines
261 B
TypeScript
12 lines
261 B
TypeScript
'use server';
|
|
|
|
import { redirect } from 'next/navigation';
|
|
|
|
import { createClient } from '@/utils/supabase/server';
|
|
|
|
export const signOutAction = async () => {
|
|
const supabase = await createClient();
|
|
await supabase.auth.signOut();
|
|
return redirect('/');
|
|
};
|