Skip to content

Commit a0c82bf

Browse files
committed
Update README
1 parent 21c160f commit a0c82bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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" />
1111
import { 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

1514
export 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
3836
import { FreshContext, Handlers, PageProps } from "$fresh/server.ts";
3937
import { 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

4240
export const handler: Handlers<unknown, WithCsrf> = {
4341
async GET(_req: Request, ctx: FreshContext) {

0 commit comments

Comments
 (0)