npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@xauth/react-lock

v1.0.17

Published

xauth 是一个企业级身份认证提供商,其集成了 OAuth、LDAP、OIDC 等多种身份认证和授权解决方案。此仓库包含了 xauth 提供的 React 认证/授权 UI 组件。

Downloads

10

Readme

xauth react 登录组件

xauth 是一个企业级身份认证提供商,其集成了 OAuth、LDAP、OIDC 等多种身份认证和授权解决方案。此仓库包含了 xauth 提供的 React 认证/授权 UI 组件。

Lock

Lock 是一种可嵌入的登录表单,可根据你的需求进行配置,建议用于单页面应用程序。 它使你可以轻松添加各种社会化登录方式,以便你的用户可以无缝登录,并且在不同平台拥有一致的登录体验。 Lock 拥有以下基本功能:

  • 登录:
    • 账号密码登录(包括手机号 + 密码、邮箱 + 密码、用户名 + 密码);
    • 手机验证码登录;
    • 微信小程序扫码登录(需先在后台配置);
    • APP 扫码登录(需要接入 APP 扫码登录);
    • 小程序扫码登录(需先在后台配置);
    • 社会化登录(需要配置社会化登录);
    • 企业身份源登录(需要配置企业身份源);
  • 注册:
    • 账号密码注册;
    • 手机验证码注册;
    • 忘记密码以及重置密码;
    • MFA 认证;
    • 响应式特性(兼容移动端和 PC 端);
    • 完整的 UI 自定义功能;
    • 兼容主流前端 UI 库:
    • 原生 JavaScript 调用;
    • Vue 组件;
    • React 组件;
    • Angular 组件
    • React Native 组件
    • Android 组件
    • iOS 组件
    • Flutter 组件

安装

npm i @xauth/react-lock

使用

import React from 'react';
import AuthLock from '@xauth/react-lock';

const Demo = () => {
  const handleLogin = user => {
    console.log('登录结果', user);
  };

  const config = {
    socialConnections: [
      'wechat-pc',
      'wechatwork-service-provider-qrconnect',
      'tiktok-pc',
    ],
  };

  return <AuthLock appId="abc" config={config} onLogin={handleLogin} />;
};

export default Demo;

模块开发规范

  • 模块开发中不建议使用 CssModules 的主要原因, 导致项目无法替换样式

dumiu框架构建的产物,在项目中引用导致样式丢失

  1. .fatherrc.js 中配置 extractCSS: true