From 6dd8ab31d56046766642c60893f957cfb3aef7b0 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Thu, 16 Jan 2025 09:23:25 +0100 Subject: [PATCH] refactor(csrf): export generateToken utility --- src/routes/csrf_protection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/csrf_protection.ts b/src/routes/csrf_protection.ts index 3f681dd96..aadd02100 100644 --- a/src/routes/csrf_protection.ts +++ b/src/routes/csrf_protection.ts @@ -12,4 +12,4 @@ const doubleCsrfUtilities = doubleCsrf({ cookieName: "_csrf" }); -export const { doubleCsrfProtection } = doubleCsrfUtilities; +export const { generateToken, doubleCsrfProtection } = doubleCsrfUtilities;