Skip to content

Commit 0c84731

Browse files
authored
Update scenario-mobile-acquire-token.md
1 parent fc66c89 commit 0c84731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/develop/scenario-mobile-acquire-token.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ If MSAL returns `MSALErrorInteractionRequired`, then try acquiring tokens intera
149149

150150
```objc
151151
UIViewController *viewController = ...; // Pass a reference to the view controller that should be used when getting a token interactively
152-
MSALWebviewParameters *webParameters = [[MSALWebviewParameters alloc] initWithParentViewController:viewController];
152+
MSALWebviewParameters *webParameters = [[MSALWebviewParameters alloc] initWithAuthPresentationViewController:viewController];
153153
MSALInteractiveTokenParameters *interactiveParams = [[MSALInteractiveTokenParameters alloc] initWithScopes:scopes webviewParameters:webParameters];
154154
[application acquireTokenWithParameters:interactiveParams completionBlock:^(MSALResult *result, NSError *error) {
155155
if (!error)
@@ -165,7 +165,7 @@ MSALInteractiveTokenParameters *interactiveParams = [[MSALInteractiveTokenParame
165165
166166
```swift
167167
let viewController = ... // Pass a reference to the view controller that should be used when getting a token interactively
168-
let webviewParameters = MSALWebviewParameters(parentViewController: viewController)
168+
let webviewParameters = MSALWebviewParameters(authPresentationViewController: viewController)
169169
let interactiveParameters = MSALInteractiveTokenParameters(scopes: scopes, webviewParameters: webviewParameters)
170170
application.acquireToken(with: interactiveParameters, completionBlock: { (result, error) in
171171

0 commit comments

Comments
 (0)