From ca4e4b7cae70909ba430195f5fb498392c9ccb0e Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sat, 24 Feb 2024 16:03:06 +0000 Subject: [PATCH] Add empty claims type --- claims/empty-claims.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 claims/empty-claims.go diff --git a/claims/empty-claims.go b/claims/empty-claims.go new file mode 100644 index 0000000..84ff4f9 --- /dev/null +++ b/claims/empty-claims.go @@ -0,0 +1,8 @@ +package claims + +// EmptyClaims contains no claims +type EmptyClaims struct {} + +func (e EmptyClaims) Valid() error { return nil } + +func (e EmptyClaims) Type() string { return "empty-claims" }