Documentation ¶
Index ¶
- type ServiceHandler
- func (serviceHandler ServiceHandler) AccessAndRefreshTokens(ctx context.Context, request *proto.JWTData, ...) error
- func (serviceHandler ServiceHandler) FreshToken(ctx context.Context, request *proto.JWTData, response *proto.Token) error
- func (serviceHandler *ServiceHandler) Init()
- func (serviceHandler ServiceHandler) RefreshTokens(ctx context.Context, request *proto.Token, ...) error
- func (serviceHandler ServiceHandler) ValidateToken(ctx context.Context, request *proto.Token, response *proto.Claims) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceHandler ¶
type ServiceHandler struct {
// contains filtered or unexported fields
}
ServiceHandler is used to handle all the jwt service functions
func (ServiceHandler) AccessAndRefreshTokens ¶
func (serviceHandler ServiceHandler) AccessAndRefreshTokens( ctx context.Context, request *proto.JWTData, response *proto.AccessAndRefreshToken) error
AccessAndRefreshTokens is used to generate access and refresh tokens
func (ServiceHandler) FreshToken ¶
func (serviceHandler ServiceHandler) FreshToken( ctx context.Context, request *proto.JWTData, response *proto.Token) error
FreshToken is used to generate fresh token
func (*ServiceHandler) Init ¶
func (serviceHandler *ServiceHandler) Init()
Init is used to initialize
func (ServiceHandler) RefreshTokens ¶
func (serviceHandler ServiceHandler) RefreshTokens( ctx context.Context, request *proto.Token, response *proto.AccessAndRefreshToken) error
RefreshTokens is used to make access and refresh token based on refresh token
func (ServiceHandler) ValidateToken ¶
func (serviceHandler ServiceHandler) ValidateToken( ctx context.Context, request *proto.Token, response *proto.Claims) error
ValidateToken is used to validate a token
Click to show internal directories.
Click to hide internal directories.