chore: readme platform libraries (#15737)
* chore: readme platform libraries * fixup! chore: readme platform libraries * fixup! fixup! chore: readme platform libraries * Update README.md * Update README.md
This commit is contained in:
1 parent
ec65cd6333
commit
eb0768917c
2 files changed
+44
-2
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { LRUCache } from "lru-cache";
|
||||
import * as lruCache from "lru-cache";
|
||||
import type { GetServerSidePropsContext, NextApiRequest, NextApiResponse } from "next";
|
||||
import type { AuthOptions, Session } from "next-auth";
|
||||
import { getToken } from "next-auth/jwt";
|
||||
@@ -15,7 +15,7 @@ const log = logger.getSubLogger({ prefix: ["getServerSession"] });
|
||||
* Stores the session in memory using the stringified token as the key.
|
||||
*
|
||||
*/
|
||||
const CACHE = new LRUCache<string, Session>({ max: 1000 });
|
||||
const CACHE = new lruCache.LRUCache<string, Session>({ max: 1000 });
|
||||
|
||||
/**
|
||||
* This is a slimmed down version of the `getServerSession` function from
|
||||
|
||||
Reference in new issue
Block a user