feat: integrate Storage config into providers (#198)

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-07-26 11:39:49 +08:00
committed by GitHub
parent 1c01a34814
commit 3d493b8d8f
12 changed files with 224 additions and 160 deletions

View File

@ -84,7 +84,8 @@ class OAuthWidget extends React.Component {
getUserProperty(user, providerType, propertyName) {
const key = `oauth_${providerType}_${propertyName}`;
return user.properties[key]
if (user.properties === null) return "";
return user.properties[key];
}
unlinkUser(providerType) {