Skip to content

Commit 59844c0

Browse files
committed
docs: fix syntax error and JS-style naming in Python examples
1 parent 42500c4 commit 59844c0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

examples/RetrievingData.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
The SDK's `get_user()` can be used to retrieve the current logged-in user:
66

77
```python
8-
user = await serverClient.get_user();
8+
user = await server_client.get_user()
99
```
1010

1111
### Passing Store Options
1212

13-
Just like most methods, `getUser` accept an argument that is used to pass to the configured Transaction and State Store:
13+
Just like most methods, `get_user` accept an argument that is used to pass to the configured Transaction and State Store:
1414

1515
```python
1616
store_options = {
@@ -27,7 +27,7 @@ Read more above in [Configuring the Store](./ConfigureStore.md).
2727
The SDK's `get_session()` can be used to retrieve the current session data:
2828

2929
```python
30-
session = await serverClient.get_session();
30+
session = await server_client.get_session()
3131
```
3232

3333
### Passing Store Options
@@ -58,7 +58,7 @@ In order to do this, the SDK needs access to a Refresh Token. By default, the SD
5858

5959
### Passing Store Options
6060

61-
Just like most methods, `getAccessToken` accept an argument that is used to pass to the configured Transaction and State Store:
61+
Just like most methods, `get_access_token` accept an argument that is used to pass to the configured Transaction and State Store:
6262

6363
```python
6464
store_options = {
@@ -225,7 +225,7 @@ token = await server_client.get_access_token(audience="https://api.example.com")
225225

226226
# Avoid unless necessary: Dynamic scopes increase session size
227227
token = await server_client.get_access_token(
228-
audience="https://api.example.com"
228+
audience="https://api.example.com",
229229
scope="openid profile email read:products write:products admin:all"
230230
)
231231
```
@@ -244,7 +244,7 @@ access_token_for_google = await server_client.get_access_token_for_connection(co
244244
```
245245

246246
- `connection`: The connection for which an access token should be retrieved, e.g. `google-oauth2` for Google.
247-
- `loginHint`: Optional login hint to inform which connection account to use, can be useful when multiple accounts for the connection exist for the same user.
247+
- `login_hint`: Optional login hint to inform which connection account to use, can be useful when multiple accounts for the connection exist for the same user.
248248

249249
The SDK will cache the token internally, and return it from the cache when not expired. When no token is found in the cache, or the token is expired, calling `get_access_token_for_connection()` will call Auth0 to retrieve a new token and update the cache.
250250

0 commit comments

Comments
 (0)