Skip to content

Commit

Permalink
chore(example): test nextauth-example unstorage fs driver
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed May 11, 2024
1 parent 90c5738 commit dd7ec4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/examples/nextjs/auth.ts
Expand Up @@ -29,10 +29,13 @@ import Twitter from "next-auth/providers/twitter"
import WorkOS from "next-auth/providers/workos"
import Zoom from "next-auth/providers/zoom"
import { createStorage } from "unstorage"
import fsDriver from "unstorage/drivers/fs"
import { UnstorageAdapter } from "@auth/unstorage-adapter"
import type { NextAuthConfig } from "next-auth"

const storage = createStorage()
const storage = createStorage({
driver: fsDriver({ base: "./tmp-unstorage" }),
})

const config = {
theme: { logo: "https://authjs.dev/img/logo-sm.png" },
Expand Down

0 comments on commit dd7ec4e

Please sign in to comment.