File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ Dead simple csrf for [Deno Csrf](https://deno.land/x/deno_csrf).
99``` ts
1010/// <reference lib = " deno.unstable" />
1111import { defineConfig } from " $fresh/server.ts" ;
12- import { getCsrfPlugin } from " ../../mod.ts" ;
13- import { testPlugin } from " ../plugins/test_plugin.ts" ;
12+ import { getCsrfPlugin } from " https://deno.land/x/fresh_csrf/mod.ts" ;
1413
1514export default defineConfig ({
1615 plugins: [
@@ -19,7 +18,6 @@ export default defineConfig({
1918 key: Deno .env .get (" FRESH_CSRF_KEY" )! , // <= string length of 32, ex. 01234567012345670123456701234567
2019 salt: Number (Deno .env .get (" FRESH_CSRF_SALT!" )! ), // ex. 123
2120 }),
22- testPlugin ,
2321 ],
2422});
2523```
@@ -37,7 +35,7 @@ Methods are provided.
3735``` ts
3836import { FreshContext , Handlers , PageProps } from " $fresh/server.ts" ;
3937import { useSignal } from " @preact/signals" ;
40- import type { WithCsrf } from " ../.. /mod.ts" ;
38+ import type { WithCsrf } from " https://deno.land/x/fresh_csrf /mod.ts" ;
4139
4240export const handler: Handlers <unknown , WithCsrf > = {
4341 async GET(_req : Request , ctx : FreshContext ) {
You can’t perform that action at this time.
0 commit comments