Add back vc auth temporarily to unblock things
This commit is contained in:
parent
07c2e7d36a
commit
177b2cc210
20 changed files with 350 additions and 40 deletions
8
lib/session/get-server-session.ts
Normal file
8
lib/session/get-server-session.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { cookies } from 'next/headers';
|
||||
import { userSessionCookieName } from './constants';
|
||||
import { getSessionFromCookie } from './server';
|
||||
|
||||
export async function getServerSession() {
|
||||
const cookieValue = cookies().get(userSessionCookieName)?.value;
|
||||
return getSessionFromCookie(cookieValue);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue