Skip to content

Commit

Permalink
Add tKey quick start
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Oct 16, 2023
1 parent cb48b95 commit f92287c
Show file tree
Hide file tree
Showing 75 changed files with 20,274 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "angular-no-modal-quick-start",
"name": "sfa-angular-quick-start",
"version": "0.0.0",
"scripts": {
"ng": "ng",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nextjs-no-modal-quick-start",
"name": "sfa-nextjs-quick-start",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-no-modal-quick-start",
"name": "sfa-react-quick-start",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-vite-no-modal-quick-start",
"name": "sfa-react-vite-quick-start",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vue-no-modal-quick-start",
"name": "sfa-vue-quick-start",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sfa-react-auth0-agg-verifier-example",
"name": "sfa-web-aggregate-verifier-example",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion single-factor-auth-web/sfa-web-auth0-example /package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sfa-react-auth0-github-example",
"name": "sfa-web-auth0-example",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sfa-next-jwt-example",
"name": "sfa-web-custom-jwt-example",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion single-factor-auth-web/sfa-web-google-example/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sfa-react-google-example",
"name": "sfa-web-google-example",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sfa-react-passwordless-example",
"name": "sfa-web-passwordless-example",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tkey-react-popup-example",
"name": "tkey-popup-flow-example",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tkey-react-redirect-example",
"name": "tkey-redirect-flow-example",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
37 changes: 37 additions & 0 deletions tkey-web/tkey-web-quick-start/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Web3Auth (`@web3auth/modal`) x EVM x React

[![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/pnp/web/modal)
[![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 with EVM in React.

## How to Use

### Download Manually

```bash
npx degit Web3Auth/web3auth-pnp-examples/web-modal-sdk/evm/react-evm-modal-example w3a-modal-evm-react
```

Install & Run:

```bash
cd w3a-modal-evm-react
npm install
npm run start
# or
cd w3a-modal-evm-react
yarn
yarn start
```

## Important Links

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [SDK / API References](https://web3auth.io/docs/sdk)
- [Pricing](https://web3auth.io/pricing.html)
- [Community Portal](https://community.web3auth.io)
32 changes: 32 additions & 0 deletions tkey-web/tkey-web-quick-start/config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const webpack = require("webpack");

module.exports = function override(config) {
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
crypto: false,
stream: false,
assert: false,
http: false,
https: false,
os: false,
url: false,
zlib: false
});
config.resolve.fallback = fallback;
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: "process/browser",
Buffer: ["buffer", "Buffer"],
}),
]);
config.ignoreWarnings = [/Failed to parse source map/];
config.module.rules.push({
test: /\.(js|mjs|jsx)$/,
enforce: "pre",
loader: require.resolve("source-map-loader"),
resolve: {
fullySpecified: false,
},
});
return config;
};
Loading

0 comments on commit f92287c

Please sign in to comment.