@classmethod
def load_access_token(cls, key: str, access_token: str) -> Identity:
    payload = jwt.decode(jwt=access_token, key=key, algorithms=[cls.ACCESS_JWT_ALGORITHM])
    return Identity(user=payload['user'], role=payload['role'])
@classmethod
def load_access_token(cls, key: str, access_token: str) -> Identity:
    payload = jwt.decode(jwt=access_token, key=key, algorithms=[cls.ACCESS_JWT_ALGORITHM])
    return Identity(user=payload['user'], role=payload['role'])