add getting company
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
from typing import Protocol
|
||||
|
||||
from api.domain.user.model import UserId
|
||||
from api.domain.user.model import UserEmail, UserId
|
||||
|
||||
|
||||
class JwtTokenProcessor(Protocol):
|
||||
def generate_token(self, user_id: UserId) -> str:
|
||||
def generate_token(self, user_id: UserId, user_email: UserEmail) -> str:
|
||||
raise NotImplementedError
|
||||
|
||||
def validate_token(self, token: str) -> UserId | None:
|
||||
def validate_token(self, token: str) -> tuple[UserId, UserEmail] | None:
|
||||
raise NotImplementedError
|
||||
|
||||
def refresh_token(self, token: str) -> str:
|
||||
|
Reference in New Issue
Block a user