LinkedIn OAuth token with Javascript SDK

人盡茶涼 提交于 2019-12-24 01:18:25

问题


I was integrating LinkedIn sign-in with my web application,

Initially I was doing the implementation using JS SDK. After I realised that for iOS Mobile Devices, LinkedIn does not support JS SDK. So Currently I am using OAuth implementation.

My question is, Is there any way to use JS SDK after getting OAuth login success and after getting the access token. My point is, I don't want to do the logic for token validation, expiration etc.

PS - Similar feature I have found in Facebook SDK, they are allowing to use Facebook JS SDK after setting the access token to SDK.

Please share your thoughts, comments, links.

Thanks in advance.


回答1:


You are using JS SDK, which has all of the following features to work with authorization, tokens etc.

Example:

IN.User.authorize()
IN.User.logout()
IN.User.refresh()
IN.API.RAW.... etc


来源:https://stackoverflow.com/questions/44841919/linkedin-oauth-token-with-javascript-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!