@internetdata/internetdata 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/generated/types.gen.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -160,14 +160,13 @@ Check that `state` came back as you sent it before you exchange `code`, which wo
|
|
|
160
160
|
|
|
161
161
|
### Register a client
|
|
162
162
|
|
|
163
|
-
An app with no client ID, and no client metadata document to use as one, registers itself
|
|
163
|
+
An app with no client ID, and no client metadata document to use as one, registers itself, then signs in with the `client_id` it gets back as the client ID for `authorizationUrl` and `exchangeAuthorizationCode`:
|
|
164
164
|
|
|
165
165
|
```js
|
|
166
166
|
const client = new InternetData();
|
|
167
167
|
const registration = await client.oauth.register(['http://127.0.0.1:8765/callback'], {
|
|
168
168
|
clientName: 'Your App',
|
|
169
169
|
});
|
|
170
|
-
// registration.client_id is the client ID for authorizationUrl and exchangeAuthorizationCode.
|
|
171
170
|
```
|
|
172
171
|
|
|
173
172
|
Each redirect URI must be https on a public host name, or http on a loopback address, which then matches any port. Nothing is kept until a person approves the client, so an app with no client ID saved can simply register again.
|
package/package.json
CHANGED