Skip to content

Commit

Permalink
fix(ms-adal): make userId optional (danielsogl#1894)
Browse files Browse the repository at this point in the history
The docs say User Identifier is optional but the method does not reflect it.
  • Loading branch information
Keepertje authored and Buddy Reno committed Aug 28, 2017
1 parent 2100b16 commit 3db00a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/ms-adal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class AuthenticationContext {
@CordovaInstance({
otherPromise: true
})
acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId: string, extraQueryParameters?: any): Promise<AuthenticationResult> { return; }
acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: any): Promise<AuthenticationResult> { return; }

/**
* Acquires token WITHOUT using interactive flow. It checks the cache to return existing result
Expand All @@ -152,6 +152,6 @@ export class AuthenticationContext {
@CordovaInstance({
otherPromise: true
})
acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId: string): Promise<AuthenticationResult> { return; }
acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId?: string): Promise<AuthenticationResult> { return; }

}

0 comments on commit 3db00a5

Please sign in to comment.