@microsoft/teamsfx 2.2.3-alpha.0c7c513de.0 → 2.2.3-alpha.25b558a2a.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.
- package/README.md +5 -6
- package/dist/index.esm2017.js +1 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +29 -15
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +1 -1
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +31 -15
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +4 -4
- package/types/teamsfx.d.ts +9 -2
package/README.md
CHANGED
@@ -535,13 +535,12 @@ You can pass custom config when creating `TeamsFx` instance to override default
|
|
535
535
|
|
536
536
|
If you are using the version of SDK that has `loadConfiguration()`, you can follow these steps to upgrade to the latest SDK version.
|
537
537
|
|
538
|
-
1.
|
539
|
-
2. Replace `new TeamsUserCredential()` with `new
|
540
|
-
3. Replace `new M365TenantCredential()` with `new
|
541
|
-
4. Replace `new OnBehalfOfUserCredential(ssoToken)` with `new
|
542
|
-
5. Pass the instance of `TeamsFx` to helper functions to replace credential instance.
|
538
|
+
1. Instead of calling `loadConfiguration()`, use the specific auth config classes to customize the settings for each credential type. For example, use `AppCredentialAuthConfig` for `AppCredential`, `OnBehalfOfUserCredentialAuthConfig` for `OnBehalfOfUserCredential`, and `TeamsUserCredentialAuthConfig` for `TeamsUserCredential`.
|
539
|
+
2. Replace `new TeamsUserCredential()` with `new TeamsUserCredential(authConfig)`.
|
540
|
+
3. Replace `new M365TenantCredential()` with `new AppCredential(authConfig)`.
|
541
|
+
4. Replace `new OnBehalfOfUserCredential(ssoToken)` with `new OnBehalfOfUserCredential(authConfig)`.
|
543
542
|
|
544
|
-
Also see [
|
543
|
+
Also see [Credential](#Credential) for furthur description.
|
545
544
|
|
546
545
|
## How to use SDK implemented with `CloudAdapter`
|
547
546
|
|
package/dist/index.esm2017.js
CHANGED