File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ def with_user_session_token(self, token: str) -> Client:
208208 --------
209209 ```python
210210 from posit.connect import Client
211+
211212 client = Client().with_user_session_token("my-user-session-token")
212213 ```
213214
@@ -218,13 +219,14 @@ def with_user_session_token(self, token: str) -> Client:
218219
219220 client = Client()
220221
222+
221223 @reactive.calc
222224 def visitor_client():
223225 ## read the user session token and generate a new client
224- user_session_token = session.http_conn.headers.get(
225- "Posit-Connect-User-Session-Token"
226- )
226+ user_session_token = session.http_conn.headers.get("Posit-Connect-User-Session-Token")
227227 return client.with_user_session_token(user_session_token)
228+
229+
228230 @render.text
229231 def user_profile():
230232 # fetch the viewer's profile information
You can’t perform that action at this time.
0 commit comments