Skip to content

Commit c597579

Browse files
Replace provider with token_provider in docs (#1403)
Documentation-vs-code sync. `provider` member was deprecated for a long time and it has been removed recently. Relates-To: OAM-2009 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent 346f667 commit c597579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/authenticate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For instructions, see the [OAuth tokens](https://developer.here.com/documentatio
3030
3131
```cpp
3232
olp::client::AuthenticationSettings auth_settings;
33-
auth_settings.provider =
33+
auth_settings.token_provider =
3434
olp::authentication::TokenProviderDefault(std::move(settings));
3535
```
3636

@@ -130,7 +130,7 @@ You can use the `AuthenticationSettings` object to create the `OlpClientSettings
130130
```cpp
131131
auto token = std::make_shared<std::string>();
132132

133-
settings.provider = [token](){
133+
settings.token_provider = [token](){
134134
if (token->empty() || isExpired(token)) {
135135
std::promise<AuthenticationClient::SignInUserResponse> token_promise;
136136

0 commit comments

Comments
 (0)