我正在将LinkedIn集成到我的应用程序中,但没有获得circleStyles.push(styles.circleCorrect);
密钥。没有import React from "react";
import { View, StyleSheet, Dimensions, Image } from "react-native";
const screen = Dimensions.get("window");
const styles = StyleSheet.create({
container: {
position: "absolute",
top: 0,
bottom: 0,
left: 0,
right: 0,
flex: 1,
alignItems: "center",
justifyContent: "center"
},
circle: {
backgroundColor: "#ff4136",
width: screen.width / 2,
height: screen.width / 2,
borderRadius: screen.width / 2,
alignItems: "center",
justifyContent: "center"
},
circleCorrect: {
backgroundColor: "#28A125"
},
icon: {
width: screen.width / 3
}
});
export const Alert = ({ correct, visible }) => {
if (!visible) return null;
const icon = correct
? require("../assets/check.png")
: require("../assets/close.png");
const circleStyles = [styles.circle];
if (correct) {
**circleStyles.push(styles.circleCorrect);**
}
return (
<View style={styles.container}>
<View style={circleStyles}>
<Image source={icon} style={styles.icon} resizeMode="contain" />
</View>
</View>
)
}
,我怎么能得到新的refresh_token
。我得到以下回应。
refresh_token
答案 0 :(得分:0)
我也只收到了access_token
{
"access_token": "AQUe7HlT2WWW3OFqY9fOx4prW8zsdx8sN4Q8fEQJ5mIbSnuH2T94AawLB6xsOsW5Yq67mG3qmOVi2pniSHTUZcskxN91zasasdasdsdxRryFx3q9Tm_7ysV2Vmi2BFpvbMBeG16xVuHtM5dF_gPVPqVZ86gx6M4M_8EwFBOnpm-WLBasdasdasddsNA6RR1O4yoHE9G9JBX9FGJ1wHdt6WLcI1UK3CKs96X9uKxADy7AN7aeInnXzHaEzTN8iDZ9UuyHZq_QkRrtAPIec_TTC6J2Q44LsYUpA8Ooa7AUnjURLQXU4ZG4P5CAD_WtqG3x0SVPvcClbXbvnBL7iQZ-np5XJNn1bVfUzGUheGUWCiA6MKt9mQ",
"expires_in": 5184000
}
如果您查看他们的文档,则会在下面找到类似的内容,https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow
“刷新访问令牌”!=“刷新令牌”
但是,该网站还提到了有关refresh_token的以下内容
“ LinkedIn已在OAuth 2.0中引入了刷新令牌。此功能目前仅适用于少数合作伙伴。它将在不久的将来成为GA。”
所以,我认为您已经写了一封邮件,要求您的应用程序获得批准,直到他们为该功能推出GA。