Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
tbtc-sdk-react
Advanced tools
## 1. Install the TBTC SDK ##### npm install tbtc-sdk-react
Weekly downloads
Readme
// Add this import line at the top
import { TBTCUserAuthenticator } from "tbtc-sdk-react";
//Success callback
const onSigninSuccess = async (data) => {
console.log(data);
};
<TBTCUserAuthenticator
groups="group1"
onSigninSuccess={onSigninSuccess}
signup={true}
styles={{tbtcSdkInput: { height: "55px" }}}
userManagementApiBase="https://user-dev.beartiger.io" />
need to insert valid group name, for inserting multiple groups use comma as a seperator
onSigninSuccess is the login success callback, authentication token will be passed to this callback
We can apply styling using styles props which is an object {"dom class name": {/React CSS object/}} Property name is camel case from of css class name and value is React CSS object. (https://reactjs.org/docs/dom-elements.html#style) Code example
{tbtcSdkInput: { height: "55px" }, "tbtcSdkBtn": {color: 'red'}}
<div class="tbtc-sdk-wrapper">
<div>
<form novalidate="">
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="email"
name="email"
class="tbtc-sdk-input"
value=""/>
<span>EMAIL</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="password"
name="password"
class="tbtc-sdk-input"
value=""/>
<span>PASSWORD</span>
</div>
<div class="tbtc-sdk-forgot-password-wrapper">
<div>
<a class="tbtc-sdk-forgot-password-link" href="/">
Forgotten password?
</a>
</div>
</div>
<div class="tbtc-sdk-button-wrapper">
<button class="tbtc-sdk-btn">Signin</button>
<button class="tbtc-sdk-btn">Signin With Wallet</button>
<button class="tbtc-sdk-btn">Signup</button>
</div>
</form>
</div>
</div>
<div class="tbtc-sdk-wrapper">
<form novalidate="">
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="email"
name="email"
class="tbtc-sdk-input"
value=""/>
<span>EMAIL</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="text"
name="name"
class="tbtc-sdk-input"
value=""/>
<span>NAME</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="text"
name="familyName"
class="tbtc-sdk-input"
value=""/>
<span>SURNAME</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
type="text"
name="phoneNumber"
class="tbtc-sdk-input"
value=""/>
<span>PHONE NUMBER</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="password"
name="password"
class="tbtc-sdk-input"
value=""/>
<span>PASSWORD</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="password"
name="confirmPassword"
class="tbtc-sdk-input"
value=""/>
<span>CONFIRM PASSWORD</span>
</div>
<div class="tbtc-sdk-button-wrapper">
<button class="tbtc-sdk-btn">Signup</button>
<button class="tbtc-sdk-btn">Signup With Wallet</button>
<button class="tbtc-sdk-btn">Signin</button>
</div>
</form>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="email"
name="email"
class="tbtc-sdk-input"
value=""/>
<span>EMAIL</span>
</div>
<div class="tbtc-sdk-wrapper">
<p class="tbtc-sdk-email-confirmation-message">
Please check you email and put the confirmation code.
</p>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="email"
name="email"
class="tbtc-sdk-input"/>
<span>EMAIL</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="password"
name="password"
class="tbtc-sdk-input"
value=""/>
<span>NEW PASSWORD</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="text"
name="code"
class="tbtc-sdk-input"
value="">
<span>CODE</span>
</div>
<div class="tbtc-sdk-code-submit-wrapper">
<button class="tbtc-sdk-btn">Submit</button>
<button class="tbtc-sdk-btn">Signin</button>
</div>
</div>
<div class="tbtc-sdk-wrapper">
<p class="tbtc-sdk-confirmation-message">
Please check you email and put the confirmation code.
</p>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="email"
name="email"
class="tbtc-sdk-input"
value=""
/>
<span>EMAIL</span>
</div>
<div class="tbtc-sdk-input-wrapper">
<input
required=""
type="text"
name="code"
class="tbtc-sdk-input"
value=""
/>
<span>CODE</span>
</div>
<div class="tbtc-sdk-code-submit-wrapper">
<button class="tbtc-sdk-btn">Submit</button>
<a class="tbtc-sdk-resend-confirmation-code-link" href="/">
Resend Confirmation Code
</a>
</div>
</div>
FAQs
## 1. Install the TBTC SDK ##### npm install tbtc-sdk-react
The npm package tbtc-sdk-react receives a total of 6 weekly downloads. As such, tbtc-sdk-react popularity was classified as not popular.
We found that tbtc-sdk-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.