Skip to content

Commit 6bcd718

Browse files
committed
Also update session.get_logout_url
1 parent df3746d commit 6bcd718

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

workos/session.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def refresh(
159159
authenticated=False, reason=str(e)
160160
)
161161

162-
def get_logout_url(self) -> str:
162+
def get_logout_url(self, return_to: Optional[str] = None) -> str:
163163
auth_response = self.authenticate()
164164

165165
if isinstance(auth_response, AuthenticateWithSessionCookieErrorResponse):
@@ -168,7 +168,8 @@ def get_logout_url(self) -> str:
168168
)
169169

170170
result = self.user_management.get_logout_url(
171-
session_id=auth_response.session_id
171+
session_id=auth_response.session_id,
172+
return_to=return_to,
172173
)
173174
return str(result)
174175

0 commit comments

Comments
 (0)