mirror of
				https://github.com/i701/sarlink-portal.git
				synced 2025-11-04 06:26:59 +00:00 
			
		
		
		
	
		
			Some checks failed
		
		
	
	Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m36s
				
			
		
			
				
	
	
		
			12 lines
		
	
	
		
			308 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			308 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
"use server";
 | 
						|
 | 
						|
import { authOptions } from "@/app/auth";
 | 
						|
import { getServerSession } from "next-auth";
 | 
						|
import { redirect } from "next/navigation";
 | 
						|
 | 
						|
export async function checkSession() {
 | 
						|
	const session = await getServerSession(authOptions);
 | 
						|
	if (!session) return redirect("/auth/signin");
 | 
						|
	return session;
 | 
						|
}
 |