diff --git a/package.json b/package.json index 11197cc..e4ee4e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "next-cas-client", - "version": "1.2.2", + "version": "1.3.0", "description": "A CAS client built for Next.js to authenticate, validate tickets, and provide session management to a CAS server", "main": "./dist/index.js", "module": "./dist/index.mjs", @@ -67,9 +67,8 @@ "typescript-eslint": "^8.11.0" }, "peerDependencies": { - "next": "^13.5.4 || ^14.0.3 || >=15.0.0-rc", - "react": ">=18 || >=19.0.0-beta", - "react-dom": ">=18 || >=19.0.0-beta" + "next": "^13 || ^14 || ^15", + "react": "^18 || ^19" }, "engines": { "node": ">=18.17.0" diff --git a/src/lib/app/session.ts b/src/lib/app/session.ts index 5e10269..f8d86ba 100644 --- a/src/lib/app/session.ts +++ b/src/lib/app/session.ts @@ -3,5 +3,5 @@ import { SessionData, SessionOptions } from '../session'; import { cookies } from 'next/headers'; export const getSession = async (): Promise> => { - return await getIronSession(cookies(), SessionOptions); + return await getIronSession(await cookies(), SessionOptions); };