Source code for sinch.domains.authentication

from abc import ABC, abstractmethod


[docs] class AuthenticationBase(ABC): def __init__(self, sinch): self.sinch = sinch
[docs] @abstractmethod def get_auth_token(self): pass
[docs] @abstractmethod def set_auth_token(self, token): pass
[docs] class Authentication(AuthenticationBase):
[docs] def get_auth_token(self): return self.sinch.configuration.token_manager.get_auth_token()
[docs] def set_auth_token(self, token): self.sinch.configuration.token_manager.set_auth_token(token)