File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -402,30 +402,30 @@ MSALAccount *account = [application accountForIdentifier:@"accountId"
402
402
}];
403
403
```
404
404
405
- Swift – Before:
405
+ Swift – Before (Deprecated) :
406
406
``` swift
407
407
do {
408
- let account = try application.account (forIdentifier : " accountId " )
408
+ let account = try application.account (forHomeAccountId : " homeAccountId " )
409
409
// Handle account
410
410
} catch {
411
411
print (" Failed to get account: \( error ) " )
412
412
}
413
413
414
- application.accountsFromDevice { (accounts, error) in
414
+ application.allAccountsFilteredByAuthority { (accounts, error) in
415
415
// Handle accounts
416
416
}
417
417
```
418
418
419
- Swift – Before (Deprecated) :
419
+ Swift – After :
420
420
``` swift
421
421
do {
422
- let account = try application.account (forHomeAccountId : " homeAccountId " )
422
+ let account = try application.account (forIdentifier : " accountId " )
423
423
// Handle account
424
424
} catch {
425
425
print (" Failed to get account: \( error ) " )
426
426
}
427
427
428
- application.allAccountsFilteredByAuthority { (accounts, error) in
428
+ application.accountsFromDevice { (accounts, error) in
429
429
// Handle accounts
430
430
}
431
431
```
You can’t perform that action at this time.
0 commit comments