We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e3f97 commit 69a7b83Copy full SHA for 69a7b83
ios/Plugin/Plugin.swift
@@ -172,8 +172,15 @@ public class MsAuthPlugin: CAPPlugin {
172
}
173
174
do {
175
- let authority = authorityType == .aad || authorityType == .ciam
176
- ? try MSALAADAuthority(url: authorityURL) : try MSALB2CAuthority(url: authorityURL)
+ let authority: MSALAuthority
+ switch authorityType {
177
+ case .aad:
178
+ authority = try MSALAADAuthority(url: authorityURL)
179
+ case .b2c:
180
+ authority = try MSALB2CAuthority(url: authorityURL)
181
+ case .ciam:
182
+ authority = try MSALCIAMAuthority(url: authorityURL)
183
+ }
184
185
if domainHint != nil {
186
print("Warning: domain hint is currently not supported on iOS.")
0 commit comments