Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@aligov/check-user

Package Overview
Dependencies
Maintainers
16
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aligov/check-user

intro component

latest
npmnpm
Version
1.0.3
Version published
Maintainers
16
Created
Source

检测用户是否唯一

@aligov/check-user

intro component

API

checkUnique

返回: Promise 检测用户是否唯一,若登录用户发生变化,则弹窗提示

getAccountInfo

获取用户信息

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import User from '@aligov/check-user';

class App extends Component {
  componentDidMount() {
    User.checkUnique().then((info) => console.log(info));
  }

  render() {
    return <div>11222</div>;
  }
}

ReactDOM.render(<App />, mountNode);

Keywords

ice

FAQs

Package last updated on 24 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts