From 21045ea535affe4b15a996e5295932857105449c Mon Sep 17 00:00:00 2001 From: Keepertje Date: Thu, 24 Aug 2017 01:55:46 +0200 Subject: [PATCH] fix(ms-adal): make userId optional (#1894) The docs say User Identifier is optional but the method does not reflect it. --- src/@ionic-native/plugins/ms-adal/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/ms-adal/index.ts b/src/@ionic-native/plugins/ms-adal/index.ts index cc77209c2..f792b97f5 100644 --- a/src/@ionic-native/plugins/ms-adal/index.ts +++ b/src/@ionic-native/plugins/ms-adal/index.ts @@ -137,7 +137,7 @@ export class AuthenticationContext { @CordovaInstance({ otherPromise: true }) - acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId: string, extraQueryParameters?: any): Promise { return; } + acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: any): Promise { return; } /** * Acquires token WITHOUT using interactive flow. It checks the cache to return existing result @@ -152,6 +152,6 @@ export class AuthenticationContext { @CordovaInstance({ otherPromise: true }) - acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId: string): Promise { return; } + acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId?: string): Promise { return; } }