Skip to content

Instantly share code, notes, and snippets.

View oezguerisbert's full-sized avatar
💭
Looking for a Job!

Özgür oezguerisbert

💭
Looking for a Job!
View GitHub Profile
@oezguerisbert
oezguerisbert / packages-app-src-lib-auth-lucia.ts
Created April 28, 2024 10:47
Auth Stuff with Lucia + SST + SolidStart
import { Lucia, TimeSpan } from "lucia";
import { luciaAdapter } from "@/core/src/drizzle/sql";
import type { SessionSelect, UserSelect } from "@/core/src/drizzle/sql/schema";
export const lucia = new Lucia(luciaAdapter, {
sessionExpiresIn: new TimeSpan(2, "w"),
sessionCookie: {
attributes: {
// set to `true` when using HTTPS
@oezguerisbert
oezguerisbert / PublicBlog.tsx
Created January 19, 2024 14:27
TailwindCSS Issue with Solid-Start / Vinxi
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import { For, JSX, Match, Show, Switch } from "solid-js";
import Markdown from "solid-marked/component";
import { Blogs } from "../utils/api/blog";
import { A, action } from "@solidjs/router";
import { Session } from "../utils/api/session";
import { Blog } from "@oetzidev/core/entities/blogs";
import { Dynamic } from "solid-js/web";
import { cn } from "../utils/cn";