Skip to content

Commit

Permalink
feat(linkedin): add getActiveSession method
Browse files Browse the repository at this point in the history
closes #1570
  • Loading branch information
ihadeed committed May 17, 2017
1 parent 277b2b1 commit 4c8deb2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/@ionic-native/plugins/linkedin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,17 @@ export class LinkedIn extends IonicNativePlugin {
openProfile(memberId: string): Promise<any> { 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<boolean>} returns a promise that resolves with a boolean that indicates whether there is an active session
*/
@Cordova()
hasActiveSession(): Promise<boolean> { return; }

/**
* Checks if there is an active session and returns the access token if it exists.
* @return {Promise<any>} returns a promise that resolves with an object that contains an access token if there is an active session
*/
@Cordova()
getActiveSession(): Promise<any> { return; }

}

0 comments on commit 4c8deb2

Please sign in to comment.