Answers for "getServerSideProps cookie"

0

getServerSideProps cookie

import * as cookie from 'cookie'

export async function getServerSideProps(context) {
  const parsedCookies = cookie.parse(context.req.headers.cookie);
  return { props: {} }
}
Posted by: Guest on May-02-2021

Browse Popular Code Answers by Language