@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 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 and signs in with the `client_id` it gets back:
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.
@@ -488,7 +488,7 @@ export type ClientRegistrationRequest = {
488
488
  export type ClientRegistration = {
489
489
  client_id: string;
490
490
  /**
491
- * Unix seconds.
491
+ * Unix seconds. 64-bit, since 32 bits run out on 2038-01-19.
492
492
  */
493
493
  client_id_issued_at: number;
494
494
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetdata/internetdata",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Official Node.js client library for the InternetData API. Download, verify and inspect licensed IP database files.",
5
5
  "type": "module",
6
6
  "license": "MIT",