feat(auth): Add OAuth2 authentication
This commit is contained in:
11
secnex/kit/auth/session.py
Normal file
11
secnex/kit/auth/session.py
Normal file
@@ -0,0 +1,11 @@
|
||||
class Session:
|
||||
def __init__(self, session: str) -> None:
|
||||
self.session = session
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.session
|
||||
|
||||
def __eq__(self, other: object) -> bool:
|
||||
if not isinstance(other, Session):
|
||||
return False
|
||||
return self.session == other.session
|
||||
Reference in New Issue
Block a user