Skip to content

Commit 669a8a5

Browse files
authored
Add async support for load_sealed_session (#425)
1 parent dac0c89 commit 669a8a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

workos/user_management.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,12 @@ def __init__(
14861486
async def load_sealed_session(
14871487
self, *, sealed_session: str, cookie_password: str
14881488
) -> Session:
1489-
raise NotImplementedError("Async load_sealed_session not implemented")
1489+
return Session(
1490+
user_management=self,
1491+
client_id=self._http_client.client_id,
1492+
session_data=sealed_session,
1493+
cookie_password=cookie_password,
1494+
)
14901495

14911496
async def get_user(self, user_id: str) -> User:
14921497
response = await self._http_client.request(

0 commit comments

Comments
 (0)