Skip to content

Build your personal knowledge base with Trilium Notes

refactor(csrf): export generateToken utility

Panagiotis Papadopoulos6dd8ab31d560
diff --git a/src/routes/csrf_protection.ts b/src/routes/csrf_protection.ts
index 3f681dd960..aadd021004 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;