Skip to content

Instantly share code, notes, and snippets.

View 342b45's full-sized avatar
🖤

#342b45 342b45

🖤
View GitHub Profile
import { prefixStorage } from "unstorage";
import type { Storage } from "unstorage";
type Session = {
id: string
userId: string
expiredAt: Date
}
@342b45
342b45 / magic_link.ts
Last active June 26, 2023 06:46
Magic Link Implementation using lucia auth
@342b45
342b45 / navbar.tsx
Created January 3, 2023 08:14
react router navbar
import {
Link,
RegisteredAllRouteInfo,
useRouter,
} from "@tanstack/react-router";
import { ReactNode, useEffect, useState } from "react";
import { classNames } from "../utils/helpers";
type NavItemProps = {
label: string;