@arolariu/website / lib/actions/cookies/cookies.action / getCookie
Function: getCookie()
getCookie(
name):Promise<string|undefined>
Defined in: lib/actions/cookies/cookies.action.ts:31
Reads a cookie value from the current request context.
Parameters
name
string
The cookie name to read.
Returns
Promise<string | undefined>
The cookie value, or undefined when not present.
Remarks
- Returns
undefinedwhen the cookie is absent. - Cookie names are case-sensitive.