Skip to content

Commit 520faa3

Browse files
Merge pull request #221222 from derisen/patch-19
replace domain_hint in request with domainHint
2 parents 834443a + 6060da6 commit 520faa3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/active-directory/develop/msal-js-sso.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ const request = {
7878

7979
#### Using a login hint
8080

81-
To bypass the account selection prompt typically shown during interactive authentication requests (or for silent requests when you haven't configured the `sid` optional claim), provide a `loginHint`. In multi-tenant applications, also include a `domain_hint`.
81+
To bypass the account selection prompt typically shown during interactive authentication requests (or for silent requests when you haven't configured the `sid` optional claim), provide a `loginHint`. In multi-tenant applications, also include a `domainHint`.
8282

8383
```javascript
8484
const request = {
8585
scopes: ["user.read"],
86-
loginHint: preferred_username,
87-
extraQueryParameters: { domain_hint: "organizations" },
86+
loginHint: "preferred_username",
87+
domainHint: "preferred_tenant_id"
8888
};
8989

9090
try {
@@ -100,11 +100,11 @@ try {
100100
}
101101
```
102102

103-
Get the values for `loginHint` and `domain_hint` from the user's **ID token**:
103+
Get the values for `loginHint` and `domainHint` from the user's **ID token**:
104104

105105
- `loginHint`: Use the ID token's `preferred_username` claim value.
106106

107-
- `domain_hint`: Use the ID token's `tid` claim value. Required in requests made by multi-tenant applications that use the */common* authority. Optional for other applications.
107+
- `domainHint`: Use the ID token's `tid` claim value. Required in requests made by multi-tenant applications that use the */common* authority. Optional for other applications.
108108

109109
For more information about login hint and domain hint, see [Microsoft identity platform and OAuth 2.0 authorization code flow](v2-oauth2-auth-code-flow.md).
110110

0 commit comments

Comments
 (0)