diff --git a/docs/pages/docs/usage/refresh-credentials.mdx b/docs/pages/docs/usage/refresh-credentials.mdx index de3be454..178cae54 100644 --- a/docs/pages/docs/usage/refresh-credentials.mdx +++ b/docs/pages/docs/usage/refresh-credentials.mdx @@ -238,7 +238,7 @@ Use `refreshServerCookies` from `next-firebase-auth-edge/lib/next/cookies` to re ```tsx 'use server'; -import {cookies} from 'next/headers'; +import {cookies, headers} from 'next/headers'; import {getTokens} from 'next-firebase-auth-edge'; import {refreshServerCookies} from 'next-firebase-auth-edge/lib/next/cookies'; @@ -268,6 +268,6 @@ export async function performServerAction() { throw new Error('Unauthenticated'); } - await refreshServerCookies(cookies(), commonOptions); + await refreshServerCookies(cookies(), headers(), commonOptions); } ```