@cumulus/oauth-client 21.2.0 → 21.3.0

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.
Files changed (2) hide show
  1. package/README.md +22 -22
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -75,14 +75,14 @@ const client = new CognitoClient({
75
75
  ## CognitoClient
76
76
  A client for the Cognito API. Extents OAuthClient.
77
77
 
78
- **Kind**: global class
78
+ **Kind**: global class
79
79
  <a name="CognitoClient+getUserInfo"></a>
80
80
 
81
81
  ### cognitoClient.getUserInfo(params) ⇒ <code>Promise.&lt;Object&gt;</code>
82
82
  Query the API for the user object associated with an access token.
83
83
 
84
- **Kind**: instance method of [<code>CognitoClient</code>](#CognitoClient)
85
- **Returns**: <code>Promise.&lt;Object&gt;</code> - The user object (see example)
84
+ **Kind**: instance method of [<code>CognitoClient</code>](#CognitoClient)
85
+ **Returns**: <code>Promise.&lt;Object&gt;</code> - The user object (see example)
86
86
 
87
87
  | Param | Type | Description |
88
88
  | --- | --- | --- |
@@ -90,7 +90,7 @@ Query the API for the user object associated with an access token.
90
90
  | params.token | <code>string</code> | The access token for Authorization header |
91
91
  | [params.xRequestId] | <code>string</code> | a string to help identify the request |
92
92
 
93
- **Example**
93
+ **Example**
94
94
  ```js
95
95
  {
96
96
  "username": "janedoe",
@@ -106,7 +106,7 @@ Query the API for the user object associated with an access token.
106
106
  ## EarthdataLoginClient
107
107
  A client for the Earthdata Login API. Extents OAuthClient.
108
108
 
109
- **Kind**: global class
109
+ **Kind**: global class
110
110
 
111
111
  * [EarthdataLoginClient](#EarthdataLoginClient)
112
112
  * [.getUserInfo(params)](#EarthdataLoginClient+getUserInfo) ⇒ <code>Promise.&lt;Object&gt;</code>
@@ -117,8 +117,8 @@ A client for the Earthdata Login API. Extents OAuthClient.
117
117
  ### earthdataLoginClient.getUserInfo(params) ⇒ <code>Promise.&lt;Object&gt;</code>
118
118
  Query the API for the user object associated with a user.
119
119
 
120
- **Kind**: instance method of [<code>EarthdataLoginClient</code>](#EarthdataLoginClient)
121
- **Returns**: <code>Promise.&lt;Object&gt;</code> - The user object (see example)
120
+ **Kind**: instance method of [<code>EarthdataLoginClient</code>](#EarthdataLoginClient)
121
+ **Returns**: <code>Promise.&lt;Object&gt;</code> - The user object (see example)
122
122
 
123
123
  | Param | Type | Description |
124
124
  | --- | --- | --- |
@@ -127,7 +127,7 @@ Query the API for the user object associated with a user.
127
127
  | params.username | <code>string</code> | The uid of the registered user |
128
128
  | [params.xRequestId] | <code>string</code> | a string to help identify the request |
129
129
 
130
- **Example**
130
+ **Example**
131
131
  ```js
132
132
  {
133
133
  "uid": "janedoe",
@@ -158,8 +158,8 @@ Query the API for the user object associated with a user.
158
158
  ### earthdataLoginClient.getTokenUsername(params) ⇒ <code>Promise.&lt;string&gt;</code>
159
159
  Query the Earthdata Login API for the UID associated with a token
160
160
 
161
- **Kind**: instance method of [<code>EarthdataLoginClient</code>](#EarthdataLoginClient)
162
- **Returns**: <code>Promise.&lt;string&gt;</code> - the UID associated with the token
161
+ **Kind**: instance method of [<code>EarthdataLoginClient</code>](#EarthdataLoginClient)
162
+ **Returns**: <code>Promise.&lt;string&gt;</code> - the UID associated with the token
163
163
 
164
164
  | Param | Type | Description |
165
165
  | --- | --- | --- |
@@ -173,7 +173,7 @@ Query the Earthdata Login API for the UID associated with a token
173
173
  ## OAuthClient
174
174
  A generic authorization client
175
175
 
176
- **Kind**: global class
176
+ **Kind**: global class
177
177
 
178
178
  * [OAuthClient](#OAuthClient)
179
179
  * [new OAuthClient(params)](#new_OAuthClient_new)
@@ -195,7 +195,7 @@ A generic authorization client
195
195
  | params.loginUrl | <code>string</code> | see example |
196
196
  | params.redirectUri | <code>string</code> | see example |
197
197
 
198
- **Example**
198
+ **Example**
199
199
  ```js
200
200
  const oAuth2Provider = new OAuthClient({
201
201
  clientId: 'my-client-id',
@@ -209,8 +209,8 @@ const oAuth2Provider = new OAuthClient({
209
209
  ### oAuthClient.getAuthorizationUrl([state]) ⇒ <code>string</code>
210
210
  Get a URL of the Login authorization endpoint
211
211
 
212
- **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
213
- **Returns**: <code>string</code> - the Login authorization URL
212
+ **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
213
+ **Returns**: <code>string</code> - the Login authorization URL
214
214
 
215
215
  | Param | Type | Description |
216
216
  | --- | --- | --- |
@@ -229,8 +229,8 @@ Returns an object with the following properties:
229
229
  - username (optional, if "endpoint" is provided by client API response)
230
230
  - expirationTime (in seconds)
231
231
 
232
- **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
233
- **Returns**: <code>Promise.&lt;Object&gt;</code> - access token information
232
+ **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
233
+ **Returns**: <code>Promise.&lt;Object&gt;</code> - access token information
234
234
 
235
235
  | Param | Type | Description |
236
236
  | --- | --- | --- |
@@ -241,8 +241,8 @@ Returns an object with the following properties:
241
241
  ### oAuthClient.postRequest(params) ⇒ <code>CancelableRequest.&lt;Response.&lt;unknown&gt;&gt;</code>
242
242
  Make an HTTP POST request to the login service
243
243
 
244
- **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
245
- **Returns**: <code>CancelableRequest.&lt;Response.&lt;unknown&gt;&gt;</code> - The return of the POST call
244
+ **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
245
+ **Returns**: <code>CancelableRequest.&lt;Response.&lt;unknown&gt;&gt;</code> - The return of the POST call
246
246
 
247
247
  | Param | Type | Description |
248
248
  | --- | --- | --- |
@@ -256,8 +256,8 @@ Make an HTTP POST request to the login service
256
256
  ### oAuthClient.getRequest(params) ⇒ <code>CancelableRequest.&lt;Response.&lt;unknown&gt;&gt;</code>
257
257
  Make an HTTP GET request to the login service
258
258
 
259
- **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
260
- **Returns**: <code>CancelableRequest.&lt;Response.&lt;unknown&gt;&gt;</code> - The return of the GET call
259
+ **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
260
+ **Returns**: <code>CancelableRequest.&lt;Response.&lt;unknown&gt;&gt;</code> - The return of the GET call
261
261
 
262
262
  | Param | Type | Description |
263
263
  | --- | --- | --- |
@@ -280,8 +280,8 @@ Returns an object with the following properties:
280
280
  - username (optional, if "endpoint" is provided by client API response)
281
281
  - expirationTime (in seconds)
282
282
 
283
- **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
284
- **Returns**: <code>Promise.&lt;Object&gt;</code> - access token information
283
+ **Kind**: instance method of [<code>OAuthClient</code>](#OAuthClient)
284
+ **Returns**: <code>Promise.&lt;Object&gt;</code> - access token information
285
285
 
286
286
  | Param | Type | Description |
287
287
  | --- | --- | --- |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/oauth-client",
3
- "version": "21.2.0",
3
+ "version": "21.3.0",
4
4
  "description": "A generic auth client",
5
5
  "homepage": "https://github.com/nasa/cumulus/tree/master/packages/oauth-client#readme",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "Cumulus"
15
15
  ],
16
16
  "engines": {
17
- "node": ">=20.12.2"
17
+ "node": ">=22.21.1"
18
18
  },
19
19
  "publishConfig": {
20
20
  "access": "public"
@@ -49,5 +49,5 @@
49
49
  "bugs": {
50
50
  "url": "https://github.com/nasa/cumulus/issues"
51
51
  },
52
- "gitHead": "696befd260527f74a8a5bfb92f9511b455a23388"
52
+ "gitHead": "9dd4a7d4b888ea713efa87d6086a762262d46dd2"
53
53
  }