Skip to content

Commit ff5c3c7

Browse files
authored
docs: fix switch_site docs (#1584)
Co-authored-by: Jordan Woods <[email protected]>
1 parent 0374c67 commit ff5c3c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/sign-in-out.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ The following example will switch the authenticated user to the NEW_SITENAME sit
200200

201201
```py
202202
# assume we already have an authenticated server object
203-
204-
server.auth.switch_site('NEW_SITENAME')
203+
new_site = server.sites.get_by_name('NEW_SITENAME')
204+
# switch_site expects a SiteItem object
205+
server.auth.switch_site(new_site)
205206
```

0 commit comments

Comments
 (0)