base-golang/pkg/auth/error.go

13 lines
307 B
Go
Raw Normal View History

2024-07-23 10:23:43 +08:00
package auth
import "errors"
var New = errors.New
var (
ErrInvalidAccessToken = errors.New("invalid access token")
ErrInvalidRefreshToken = errors.New("invalid refresh token")
ErrExpiredAccessToken = errors.New("expired access token")
ErrExpiredRefreshToken = errors.New("expired refresh token")
)