Documentation ¶
Index ¶
Constants ¶
View Source
const (
JWT_TOKEN_SIGNING_KEY = "AllYourBase"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(usrStrCli usrstrpb.UserServiceClient, refTknStrCli reftknstrpb.TokenServiceClient) *AuthService
func (*AuthService) CreateUser ¶
func (*AuthService) GetTokens ¶
func (s *AuthService) GetTokens(userId int64) (*models.AuthToken, error)
func (*AuthService) PurgeRefreshToken ¶
func (s *AuthService) PurgeRefreshToken(userId int64) (int64, error)
Click to show internal directories.
Click to hide internal directories.