14 lines
229 B
Go
14 lines
229 B
Go
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"
|
|
}
|