Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit c00010b

Browse files
authored
📝 Truncated dummy access token in example (#176)
* truncate dummy access token * truncate dummy access token
1 parent bf34dc4 commit c00010b

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

pan_cortex_data_lake/credentials.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,28 @@ def __init__(
9898
9999
Examples:
100100
101-
```python
102-
from pan_cortex_data_lake import Credentials
101+
```python
102+
from pan_cortex_data_lake import Credentials
103103
104104
105-
# Load credentials from envars or ~/.config/pan_cortex_data_lake/credentials.json
106-
c = Credentials()
105+
# Load credentials from envars or ~/.config/pan_cortex_data_lake/credentials.json
106+
c = Credentials()
107107
108-
# Load credentials with static access_token
109-
access_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRyYXNoIFBBTkRBIiwiaWF0IjoxNTE2MjM5MDIyfQ"
110-
c = Credentials(access_token=access_token)
108+
# Load credentials with static access_token
109+
access_token = "eyJ..."
110+
c = Credentials(access_token=access_token)
111111
112-
# Load full credentials
113-
client_id = "trash"
114-
client_secret = "panda"
115-
refresh_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRyYXNoIFBBTkRBIiwiaWF0IjoxNTE2MjM5MDIyfQ"
116-
c = Credentials(client_id=client_id, client_secret=client_secret, refresh_token=refresh_token)
117-
```
112+
# Load full credentials
113+
client_id = "trash"
114+
client_secret = "panda"
115+
refresh_token = "eyJ..."
116+
117+
c = Credentials(
118+
client_id=client_id,
119+
client_secret=client_secret,
120+
refresh_token=refresh_token
121+
)
122+
```
118123
119124
"""
120125
self.access_token_ = access_token

0 commit comments

Comments
 (0)