@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 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. Remove `loadConfiguration()` and pass customized settings using `new TeamsFx(IdentityType.User, { ...customConfig })`.
539
- 2. Replace `new TeamsUserCredential()` with `new TeamsFx()`.
540
- 3. Replace `new M365TenantCredential()` with `new TeamsFx(IdentityType.App)`.
541
- 4. Replace `new OnBehalfOfUserCredential(ssoToken)` with `new TeamsFx().setSsoToken(ssoToken)`.
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 [TeamsFx class](#teamsfx-class) for furthur description.
543
+ Also see [Credential](#Credential) for furthur description.
545
544
 
546
545
  ## How to use SDK implemented with `CloudAdapter`
547
546
 
@@ -864,7 +864,7 @@ class MsGraphAuthProvider {
864
864
  * };
865
865
  * const prompt = new TeamsBotSsoPrompt(dialogId, {
866
866
  * config: config
867
- * scopes: '["User.Read"],
867
+ * scopes: ["User.Read"],
868
868
  * });
869
869
  * this.addDialog(prompt);
870
870
  *