Documentation
¶
Index ¶
- type AccessTokenClaims
- type AccessTokenPayload
- type JwtService
- func (s *JwtService) GenerateBillingServiceToken() *ServiceToken
- func (s *JwtService) IsExpiredUnix(unix int64) bool
- func (s *JwtService) ValidateAccessToken(accessToken string) (bool, *AccessTokenPayload)
- func (s *JwtService) ValidateSubscriptionServiceToken(serviceToken string) (bool, *AccessTokenPayload)
- type ServiceToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenClaims ¶
type AccessTokenClaims struct { AccessTokenPayload jwt.StandardClaims }
type AccessTokenPayload ¶
type AccessTokenPayload struct {
UserId string `json:"userId"`
}
type JwtService ¶
type JwtService struct {
// contains filtered or unexported fields
}
func NewJwtService ¶
func NewJwtService(configService config_service.ConfigService) *JwtService
func (*JwtService) GenerateBillingServiceToken ¶
func (s *JwtService) GenerateBillingServiceToken() *ServiceToken
func (*JwtService) IsExpiredUnix ¶
func (s *JwtService) IsExpiredUnix(unix int64) bool
func (*JwtService) ValidateAccessToken ¶
func (s *JwtService) ValidateAccessToken(accessToken string) (bool, *AccessTokenPayload)
func (*JwtService) ValidateSubscriptionServiceToken ¶
func (s *JwtService) ValidateSubscriptionServiceToken(serviceToken string) (bool, *AccessTokenPayload)
type ServiceToken ¶
Click to show internal directories.
Click to hide internal directories.