fix: auth flow fixed, add getOrCreate method for user
This commit is contained in:
@@ -28,6 +28,7 @@ type UserRepo interface {
|
||||
GetByID(ctx context.Context, id uuid.UUID) (*User, error)
|
||||
GetByPhone(ctx context.Context, phone string) (*User, error)
|
||||
GetByPubKey(ctx context.Context, pubKey string) (*User, error)
|
||||
GetOrCreateUserByPubKey(ctx context.Context, pubKey string) (*User, error)
|
||||
Update(ctx context.Context, user *User) error
|
||||
Delete(ctx context.Context, id uuid.UUID) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user