mirror of
https://github.com/1f349/mjwt.git
synced 2024-11-14 15:31:36 +00:00
Add empty claims type
This commit is contained in:
parent
ab84ded3a1
commit
ca4e4b7cae
8
claims/empty-claims.go
Normal file
8
claims/empty-claims.go
Normal file
@ -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" }
|
Loading…
Reference in New Issue
Block a user