Skip to content

Commit

Permalink
chore(example): use unstorage memoryDriver in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed May 11, 2024
1 parent 4577455 commit 2c41828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/examples/nextjs/auth.ts
Expand Up @@ -29,7 +29,7 @@ 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 memoryDriver from "unstorage/drivers/memory"
import vercelKVDriver from "unstorage/drivers/vercel-kv"
import { UnstorageAdapter } from "@auth/unstorage-adapter"
import type { NextAuthConfig } from "next-auth"
Expand All @@ -41,7 +41,7 @@ const storage = createStorage({
token: process.env.AUTH_KV_REST_API_TOKEN,
env: false,
})
: fsDriver({ base: "./tmp-unstorage" }),
: memoryDriver(),
})

const config = {
Expand Down

0 comments on commit 2c41828

Please sign in to comment.