Documentation
¶
Index ¶
- type AuthStorage
- func (s *AuthStorage) GetTokensPair(ctx context.Context, refreshToken, userID string) (*model.TokenPair, error)
- func (s *AuthStorage) RemoveTokens(ctx context.Context, userID string) error
- func (s *AuthStorage) SaveUser(ctx context.Context, oauthJWT model.OAuthJWTToken, pair model.TokenPair) (string, error)
- func (s *AuthStorage) UpdateTokens(ctx context.Context, pair model.TokenPair, userID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthStorage ¶
type AuthStorage struct {
// contains filtered or unexported fields
}
func NewAuthStorage ¶
func NewAuthStorage(logger logger.Logger, dbConn *pgx.Conn, dbTimeout time.Duration) *AuthStorage
func (*AuthStorage) GetTokensPair ¶
func (*AuthStorage) RemoveTokens ¶
func (s *AuthStorage) RemoveTokens(ctx context.Context, userID string) error
func (*AuthStorage) SaveUser ¶
func (s *AuthStorage) SaveUser(ctx context.Context, oauthJWT model.OAuthJWTToken, pair model.TokenPair) (string, error)
func (*AuthStorage) UpdateTokens ¶
Click to show internal directories.
Click to hide internal directories.