Skip to content

Commit

Permalink
fix(ts): make ctxOrReq optional in getCsrfToken() (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
typedashutosh committed Apr 25, 2021
1 parent 065d9eb commit 07e2a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/client.d.ts
Expand Up @@ -52,7 +52,7 @@ export const session: typeof getSession
*
* [Documentation](https://next-auth.js.org/getting-started/client#getcsrftoken)
*/
export function getCsrfToken(ctxOrReq: CtxOrReq): Promise<string | null>
export function getCsrfToken(ctxOrReq?: CtxOrReq): Promise<string | null>

/**
* Alias for `getCsrfToken`
Expand Down

1 comment on commit 07e2a83

@vercel
Copy link

@vercel vercel bot commented on 07e2a83 Apr 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.