Skip to content

Commit

Permalink
Improvements to cookie example
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed May 26, 2020
1 parent db53b34 commit 8ff9181
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cookies_test.ts
@@ -1,3 +1,5 @@
// Copyright 2018-2020 the oak authors. All rights reserved. MIT license.

import { test, assertEquals } from "./test_deps.ts";

import { Cookies } from "./cookies.ts";
Expand Down
5 changes: 4 additions & 1 deletion examples/cookieServer.ts
Expand Up @@ -12,7 +12,10 @@ import {

import { Application } from "../mod.ts";

const app = new Application();
const app = new Application({
// This will be used to sign cookies to help prevent cookie tampering
keys: ["secret1"],
});

// Logger
app.use(async (ctx, next) => {
Expand Down

0 comments on commit 8ff9181

Please sign in to comment.