Skip to content

Commit

Permalink
Add torus.js quick start
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Sep 3, 2024
1 parent b7f98fe commit e78bcc5
Show file tree
Hide file tree
Showing 15 changed files with 3,560 additions and 0 deletions.
25 changes: 25 additions & 0 deletions torus-js/torus-js-quick-start/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
yarn.lock

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
37 changes: 37 additions & 0 deletions torus-js/torus-js-quick-start/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Web3Auth (`@web3auth/single-factor-auth`) QuickStart - React

[![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/core-kit/sfa-web)
[![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io)

[Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates.

This example demonstrates how to use Web3Auth Single Factor Auth Web SDK in React

## How to Use

### Download Manually

```bash
npx degit Web3Auth/web3auth-pnp-examples/single-factor-auth-web/quick-starts/sfa-react-quick-start w3a-sfa-react-quick-start
```

Install & Run:

```bash
cd w3a-sfa-react-quick-start
npm install
npm run start
# or
cd w3a-sfa-react-quick-start
yarn
yarn start
```

## Important Links

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/guides)
- [SDK / API References](https://web3auth.io/docs/sdk)
- [Pricing](https://web3auth.io/pricing.html)
- [Community Portal](https://community.web3auth.io)
19 changes: 19 additions & 0 deletions torus-js/torus-js-quick-start/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module">
import { Buffer } from "buffer";
import process from "process";
window.Buffer = Buffer;
window.process = process;
</script>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit e78bcc5

Please sign in to comment.