13 lines
327 B
TypeScript
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();
|
|
}
|