UNPKG

simple-next-csrf

Version:

This project aims to add Cross-Site Request Forgery (CSRF) protection to a Next.js application that does have server-side props support.

4 lines (3 loc) 161 B
declare const getToken: (secret: string) => string; declare const validateToken: (token: string, secret: string) => boolean; export { getToken, validateToken };