Skip to content

Instantly share code, notes, and snippets.

View esau-morais's full-sized avatar
⌨️
Coding

Esaú Morais esau-morais

⌨️
Coding
View GitHub Profile
import { isBrowser } from '@lib/isBrowser';
import { useState } from 'react';
interface CookieOptions {
days?: number;
path?: string;
domain?: string;
SameSite?: 'None' | 'Lax' | 'Strict';
Secure?: boolean;