16 lines
342 B
Python
16 lines
342 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from typing import Protocol, runtime_checkable
|
||
|
|
|
||
|
|
|
||
|
|
@runtime_checkable
|
||
|
|
class ChannelAuthProtocol(Protocol):
|
||
|
|
async def login(self) -> bool: ...
|
||
|
|
|
||
|
|
async def verify_session(self) -> bool: ...
|
||
|
|
|
||
|
|
async def refresh_credentials(self) -> bool: ...
|
||
|
|
|
||
|
|
@property
|
||
|
|
def credential_status(self) -> str: ...
|