From 4c8deb2bed1388db7eaf0beca6294e5762b3af70 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Wed, 17 May 2017 06:36:04 -0400 Subject: [PATCH] feat(linkedin): add getActiveSession method closes #1570 --- src/@ionic-native/plugins/linkedin/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/linkedin/index.ts b/src/@ionic-native/plugins/linkedin/index.ts index 24d5e1ea0..f60ecf831 100644 --- a/src/@ionic-native/plugins/linkedin/index.ts +++ b/src/@ionic-native/plugins/linkedin/index.ts @@ -100,10 +100,17 @@ export class LinkedIn extends IonicNativePlugin { openProfile(memberId: string): Promise { return; } /** - * Checks if there is already an existing active session. This should be used to avoid unecessary login. + * Checks if there is already an existing active session. This should be used to avoid unnecessary login. * @return {Promise} returns a promise that resolves with a boolean that indicates whether there is an active session */ @Cordova() hasActiveSession(): Promise { return; } + /** + * Checks if there is an active session and returns the access token if it exists. + * @return {Promise} returns a promise that resolves with an object that contains an access token if there is an active session + */ + @Cordova() + getActiveSession(): Promise { return; } + }