nylas 8.0.1 → 8.0.2
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.
|
@@ -163,6 +163,9 @@ class Auth extends resource_js_1.Resource {
|
|
|
163
163
|
if (config.state) {
|
|
164
164
|
url.searchParams.set('state', config.state);
|
|
165
165
|
}
|
|
166
|
+
if (config.smtpRequired) {
|
|
167
|
+
url.searchParams.set('options', 'smtp_required');
|
|
168
|
+
}
|
|
166
169
|
return url;
|
|
167
170
|
}
|
|
168
171
|
hashPKCESecret(secret) {
|
package/lib/cjs/version.js
CHANGED
|
@@ -160,6 +160,9 @@ export class Auth extends Resource {
|
|
|
160
160
|
if (config.state) {
|
|
161
161
|
url.searchParams.set('state', config.state);
|
|
162
162
|
}
|
|
163
|
+
if (config.smtpRequired) {
|
|
164
|
+
url.searchParams.set('options', 'smtp_required');
|
|
165
|
+
}
|
|
163
166
|
return url;
|
|
164
167
|
}
|
|
165
168
|
hashPKCESecret(secret) {
|
package/lib/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is generated by scripts/exportVersion.js
|
|
2
|
-
export const SDK_VERSION = '8.0.
|
|
2
|
+
export const SDK_VERSION = '8.0.2';
|
|
@@ -49,6 +49,12 @@ export interface URLForAuthenticationConfig {
|
|
|
49
49
|
* If a Grant for the provided email already exists, a Grant's re-auth will automatically be initiated.
|
|
50
50
|
*/
|
|
51
51
|
loginHint?: string;
|
|
52
|
+
/**
|
|
53
|
+
* If set to true, the options=smtp_required parameter is added to the authentication URL.
|
|
54
|
+
* This forces users to provide SMTP settings during IMAP authentication, preventing
|
|
55
|
+
* send failures from missing SMTP configuration.
|
|
56
|
+
*/
|
|
57
|
+
smtpRequired?: boolean;
|
|
52
58
|
}
|
|
53
59
|
/**
|
|
54
60
|
* Configuration for generating a URL for admin consent authentication for Microsoft.
|
package/lib/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "8.0.
|
|
1
|
+
export declare const SDK_VERSION = "8.0.2";
|