具有Javascript SDK的LinkedIn OAuth令牌 [英] LinkedIn OAuth token with Javascript SDK

查看:90
本文介绍了具有Javascript SDK的LinkedIn OAuth令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 LinkedIn登录与我的Web应用程序集成,

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

最初,我是使用JS SDK来实现的.当我意识到对于iOS移动设备,LinkedIn不支持JS SDK.所以目前我正在使用OAuth实现.

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.

我的问题是Is there any way to use JS SDK after getting OAuth login success and after getting the access token.我的意思是,I don't want to do the logic for token validation, expiration etc.

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-我在Facebook SDK中发现了类似功能,将访问令牌设置为SDK后,它们允许使用Facebook JS SDK.

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.

谢谢.

推荐答案

您正在使用JS SDK,该SDK具有以下所有功能,可用于授权,令牌等.

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

示例:

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

这篇关于具有Javascript SDK的LinkedIn OAuth令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆