taskcafe/api/router/errors.go

14 lines
229 B
Go
Raw Normal View History

2020-04-10 04:40:22 +02:00
package router
type ErrExpiredToken struct{}
func (r *ErrExpiredToken) Error() string {
return "token is expired"
}
type ErrMalformedToken struct{}
func (r *ErrMalformedToken) Error() string {
return "token is malformed"
}