Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NilTokenValidatorError = errors.New("token validator cannot be nil")
)
Functions ¶
This section is empty.
Types ¶
type DefaultTokenValidator ¶
type DefaultTokenValidator struct {
// contains filtered or unexported fields
}
DefaultTokenValidator struct
func NewDefaultTokenValidator ¶
func NewDefaultTokenValidator( authTokenSource *oauth.TokenSource, authClient pbauth.AuthClient, redisTokenValidator commonredisauth.TokenValidator, ) (*DefaultTokenValidator, error)
NewDefaultTokenValidator creates a new default token validator
func (*DefaultTokenValidator) IsTokenValid ¶
func (d *DefaultTokenValidator) IsTokenValid( token string, jwtId string, isRefreshToken bool, ) (bool, error)
IsTokenValid checks if the token is valid
Click to show internal directories.
Click to hide internal directories.