aboutsummaryrefslogtreecommitdiff
path: root/lib/paseto/v2/public_token.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/paseto/v2/public_token.go')
-rw-r--r--lib/paseto/v2/public_token.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/paseto/v2/public_token.go b/lib/paseto/v2/public_token.go
new file mode 100644
index 00000000..446eb12b
--- /dev/null
+++ b/lib/paseto/v2/public_token.go
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-FileCopyrightText: 2020 Shulhan <ms@kilabit.info>
+
+package pasetov2
+
+// PublicToken contains the unpacked public token.
+type PublicToken struct {
+ Token JSONToken
+ Footer JSONFooter
+ Data []byte
+}