From 1a90c059e716a90c9132fd211df9adda038b8950 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 1 Dec 2017 21:51:22 -0800 Subject: Store tokens in database instead of cookie --- model/token.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 model/token.go (limited to 'model') diff --git a/model/token.go b/model/token.go new file mode 100644 index 0000000..5626a77 --- /dev/null +++ b/model/token.go @@ -0,0 +1,11 @@ +// Copyright 2017 Frédéric Guillot. All rights reserved. +// Use of this source code is governed by the Apache 2.0 +// license that can be found in the LICENSE file. + +package model + +// Token represents a CSRF token in the system. +type Token struct { + ID string + Value string +} -- cgit v1.2.3