Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak_nest/deps.ts>OakCookie#get

Refer to nestjs to realize some common functions for Deno
Go to Latest
method OakCookie.prototype.get
import { OakCookie } from "https://deno.land/x/oak_nest@v1.13.16/deps.ts";

Get the value of a cookie from the request.

If the cookie is signed, and the signature is invalid, the cookie will be set to be deleted in the the response. If the signature uses an "old" key, the cookie will be re-signed with the current key and be added to the response to be updated.

Parameters

name: string
optional
options: CookiesGetOptions = [UNSUPPORTED]

Returns

Promise<string | undefined>