Skip to content

Commit

Permalink
docs: update outdated docs for refreshServerCookies method
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogrodzki committed Jun 5, 2024
1 parent 0e4c554 commit 2367a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/usage/refresh-credentials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -268,6 +268,6 @@ export async function performServerAction() {
throw new Error('Unauthenticated');
}

await refreshServerCookies(cookies(), commonOptions);
await refreshServerCookies(cookies(), headers(), commonOptions);
}
```

0 comments on commit 2367a7e

Please sign in to comment.