UNPKG

bc-node-sdk

Version:

BetterCommerce's NodeJS SDK encapsulates the base framework for all the Next.js applications.

17 lines (16 loc) 676 B
import { RequestCookies } from "next/dist/compiled/@edge-runtime/cookies"; import { ReadonlyRequestCookies } from "next/dist/server/web/spec-extension/adapters/request-cookies"; /** * Class {@link RequestUtil} encapsulates utility methods to process the request and cookies. * * @class RequestUtil * @abstract */ export default abstract class RequestUtil { /** * Retrieves the SSO user ID from the given cookies and returns it as an object * @param cookies the cookies containing the SSO user id * @returns an object with the SSO user id */ static getRequestCookies(cookies: RequestCookies | ReadonlyRequestCookies): Object; }