Skip to content

Commit 1f142f6

Browse files
committed
Update examples
1 parent 7315d1b commit 1f142f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async def get_client(self) -> CriblControlPlane:
169169
username=self.username,
170170
password=self.password
171171
)
172-
token = response.token
172+
token = response.result.token
173173

174174
security = Security(bearer_auth=token)
175175
self.client = CriblControlPlane(

examples/example_onprem_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def main():
3636
username=ONPREM_USERNAME,
3737
password=ONPREM_PASSWORD
3838
)
39-
token = response.token
39+
token = response.result.token
4040
print(f"✅ Authenticated with on-prem server, token: {token}")
4141

4242
# Create authenticated SDK client

0 commit comments

Comments
 (0)