Files
myeasycms-v2/apps/web/app/(dashboard)/home/(user)/account/actions.server.ts
giancarlo bce3479368 Cleanup
2024-03-24 02:23:22 +08:00

13 lines
327 B
TypeScript

'use server';
import { getSupabaseServerActionClient } from '@kit/supabase/server-actions-client';
/**
* Refreshes the user session on the server when updating the user profile.
*/
export async function refreshSessionAction() {
const supabase = getSupabaseServerActionClient();
await supabase.auth.refreshSession();
}