0.0.1 • Published 1 year ago

next-unified-cookie v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

next-unified-cookie

Unified cookie management for server and client in Next.js

Installation

$ npm install next-universal-cookie

Spec:

We will follow the official Next.js documentation for handling cookies as described in the "API Reference for the cookies function." By adhering to these guidelines, we ensure our implementation is robust and up-to-date with Next.js standards.

For more details, please refer to the official documentation: Next.js cookies function API Reference.

cookies().get(key)

Retrieves the value of the specified cookie key.

cookies().getAll()

Retrieves all cookies.

cookies().set(key, value, options)

Sets a cookie with the specified key, value, and options.

cookies().delete(key)

Deletes the cookie with the specified key.

cookies().has(key)

Checks if a cookie with the specified key exists.