lucid-extension-sdk 0.0.183 → 0.0.184

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/editorclient.d.ts CHANGED
@@ -139,10 +139,10 @@ export declare class EditorClient {
139
139
  oauthXhr(providerName: string, request: OAuthXHRRequest): Promise<XHRResponse>;
140
140
  triggerAuthFlow(providerName: string): TriggerAuthFlowResult;
141
141
  /**
142
- * Fetch the OAuth token if there is one
142
+ * Returns an OAuth token for the given provider, prompting the user to grant access if necessary
143
143
  *
144
144
  * @param providerName Name of the OAuth provider
145
- * @returns An oauth token or undefined if it doesn't exist
145
+ * @returns An oauth token, or undefined if a valid token cannot be obtained
146
146
  */
147
147
  getOAuthToken(providerName: string): Promise<string | undefined>;
148
148
  /**
package/editorclient.js CHANGED
@@ -207,10 +207,10 @@ class EditorClient {
207
207
  });
208
208
  }
209
209
  /**
210
- * Fetch the OAuth token if there is one
210
+ * Returns an OAuth token for the given provider, prompting the user to grant access if necessary
211
211
  *
212
212
  * @param providerName Name of the OAuth provider
213
- * @returns An oauth token or undefined if it doesn't exist
213
+ * @returns An oauth token, or undefined if a valid token cannot be obtained
214
214
  */
215
215
  async getOAuthToken(providerName) {
216
216
  return await this.sendCommand("got" /* CommandName.GetOAuthToken */, { 'p': providerName });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.183",
3
+ "version": "0.0.184",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",