Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoginFailed = httputil.Error{Code: "AU0001", Message: "login failed", StatusCode: http.StatusUnauthorized} ErrInvalidRefreshToken = httputil.Error{Code: "AU0002", Message: "invalid refresh token", StatusCode: http.StatusBadRequest} )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PrefixPath string
RTCookieSettings RTCookieSettings
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(srv Service, v validator.Validator, opts ...Option) *Controller
func (*Controller) Register ¶
func (c *Controller) Register(mux *httprouter.Router)
type Credentials ¶
type Option ¶
type Option func(c *Config)
func WithPrefixPath ¶
func WithRTCookieDomain ¶
func WithRTCookieName ¶
func WithRTCookieTTL ¶
type RTCookieSettings ¶
type RefreshToken ¶
type RefreshToken struct {
Token string `json:"refresh_token" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.