fix: auth flow fixed, add getOrCreate method for user

This commit is contained in:
VQIVS committed 2025-09-09 16:57:34 +03:30
1 parent 406b181576
commit 7d7f54261b
8 files changed
+65 -16

No files matched your search

+1
View File
@@ -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
}