Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloud-ui-materials

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloud-ui-materials

  • 0.6.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by11.11%
Maintainers
1
Weekly downloads
 
Created
Source

LcapLogin 登录

  • 示例
  • API

runtime

账号与权限中心的统一认证登录组件

示例

基本用法

<lcap-login src="http://nuims.vusion.top" useGithub></lcap-login>

工行登录

<lcap-login src="http://nuims.vusion.top" useIcbc hasUserCenter></lcap-login>

API

Props/Attrs

Prop/AttrTypeOptionsDefaultDescription
useRedirectbooleanfalse是否开启登录页。若关闭登录页,请选择跳转登录配置,否则会影响应用的登录和权限控制
mainLoginTypesobjectArray[\[object Object\], \[object Object\], \[object Object\], \[object Object\]]主登录类型
subLoginTypesobjectArray[\[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\], \[object Object\]]辅助登录类型
redirectLoginTypesobjectArray[\[object Object\]]跳转登录配置
exdaysnumber1设置 Cookie 过期天数

Events

@success

登录成功后触发

ParamTypeDescription
$event.Authorizationstring登录成功后为用户颁发的 AccessToken
$event.UserIdstring用户 ID
$event.UserNamestring用户名
$event.Messagestring登录成功的信息
@error

登录失败后触发

ParamTypeDescription
$event.Messagestring登录失败的信息

FAQs

Package last updated on 22 Aug 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc