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

@smarterservices/iam-react-client

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smarterservices/iam-react-client

react-ui-validate ==== Description: A component that will remove are add elements to the dom based on if the users iam document allows access. Getting Started: === var ValidateConstructor = require('ValidateConstructor') var Validate = new ValidateConst

  • 1.0.8
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

react-ui-validate

Description: A component that will remove are add elements to the dom based on if the users iam document allows access. Getting Started:

var ValidateConstructor = require('ValidateConstructor')
var Validate = new ValidateConstructor({iam:'iam object'})

Two ways of use:

<Validate iam="iam doc" iamAction="iam action" iamResource="iam resource">
<div><p>first way to use</p></div>
</Validate>

This way will hide or show everything in the validate component based on the action and resource that was tagged to it.

<Validate iam="iam doc">
<div>
	<p iamAction="action" iamResource="resource">second way to use</p>
	<div>
		<p iamAction="" iamResource="">At any nest level</p>
	</div>
</div>

This way will add or remove content from the dom based on the action and resource tags applied directly to the element. This will work at any nest level(so you could wrap the whole page if you wanted to invalidate) and

FAQs

Package last updated on 29 Aug 2024

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