17 lines
554 B
Go
17 lines
554 B
Go
package authentication
|
|
|
|
// import (
|
|
// "context"
|
|
|
|
// )
|
|
|
|
// type UserStore interface {
|
|
// GetUserByEmailPhone(ctx context.Context, email, phone string, companyID domain.ValidInt64) (domain.User, error)
|
|
// }
|
|
// type TokenStore interface {
|
|
// CreateRefreshToken(ctx context.Context, rt domain.RefreshToken) error
|
|
// GetRefreshToken(ctx context.Context, token string) (domain.RefreshToken, error)
|
|
// GetRefreshTokenByUserID(ctx context.Context, id int64) (domain.RefreshToken, error)
|
|
// RevokeRefreshToken(ctx context.Context, token string) error
|
|
// }
|