Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrVerifyAPIUnavailable - error representing unavailability of verify api
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents dependencies for auth client
func (*Client) VerifyToken ¶
VerifyToken returns result of token verification
type VerifyToken ¶
type VerifyToken struct {
Token string `json:"token" validate:"jwt"`
}
VerifyToken is a request type for JWT verification
type VerifyTokenResp ¶
type VerifyTokenResp struct {
Valid bool `json:"valid"`
}
VerifyTokenResp is a response type for JWT verification
Click to show internal directories.
Click to hide internal directories.