Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit c1e4d0d

Browse files
d62remiabernix
authored andcommitted
Precision on services-oauth [clientId | appId | consumerKey] (#125)
* Update accounts.md * Update accounts.md * Tweaks to text.
1 parent 56ee043 commit c1e4d0d

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

source/api/accounts.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,23 +216,31 @@ First, add the service configuration package:
216216
meteor add service-configuration
217217
```
218218

219-
Then, in your app:
219+
Then, in your app (this example is for the Weebo service):
220220

221221
```js
222222
ServiceConfiguration.configurations.upsert(
223223
{ service: 'weibo' },
224224
{
225225
$set: {
226-
clientId: '1292962797',
227-
loginStyle: 'popup',
228-
secret: '75a730b58f5691de5522789070c319bc'
226+
loginStyle: "popup",
227+
clientId: "1292962797", // See table below for correct property name!
228+
secret: "75a730b58f5691de5522789070c319bc"
229229
}
230230
}
231231
);
232232
```
233233

234-
Each external service has its own login provider package and login function. For
235-
example, to support GitHub login, run in your terminal:
234+
The correct property name to use for the API identifier (i.e. `clientId` in the above example) depends on the the login service being used, so be sure to use the correct one:
235+
236+
| Property Name | Services |
237+
|---|---|
238+
| `appId` | Facebook |
239+
| `clientId` | Github, Google, Meetup, Meteor Developer Accounts, Weibo |
240+
| `consumerKey` | Twitter |
241+
242+
Additionally, each external service has its own login provider package and login function. For
243+
example, to support GitHub login, run the following in your terminal:
236244

237245
```bash
238246
meteor add accounts-github

0 commit comments

Comments
 (0)