mirror of
https://github.com/1f349/mjwt.git
synced 2024-12-22 15:34:08 +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