Skip to content

Commit

Permalink
Merge pull request #84 from tkey/tkey-solana
Browse files Browse the repository at this point in the history
Add tKey Solana Quick Start
  • Loading branch information
AyushBherwani1998 authored Jul 5, 2024
2 parents f8d0075 + dc07b50 commit c671531
Show file tree
Hide file tree
Showing 43 changed files with 21,873 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ results in a standard cryptographic key provider specific to the user and applic

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [Guides](https://web3auth.io/docs/guides)
- [SDK / API References](https://web3auth.io/docs/sdk)
- [Pricing](https://web3auth.io/pricing.html)
- [Github Discussion Board](https://github.com/orgs/Web3Auth/discussions)
Expand Down
2 changes: 1 addition & 1 deletion tkey-android/tkey-android-auth0-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-android-auth0

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-android/tkey-android-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-android-quick-start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-android/tkey-android-sfa-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-android-sfa

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-ios/tkey-ios-aggregate-verifier-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-ios-aggregate

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
Expand Down
2 changes: 1 addition & 1 deletion tkey-ios/tkey-ios-auth0-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-ios-auth0

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
Expand Down
2 changes: 1 addition & 1 deletion tkey-ios/tkey-ios-firebase-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-ios-firebase

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
Expand Down
2 changes: 1 addition & 1 deletion tkey-ios/tkey-ios-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-ios-quick-start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-mpc-ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd w3a-tkey-mpc-ios

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-mpc-web/tkey-mpc-react-bitcoin-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-mpc-web/tkey-mpc-react-firebase-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-mpc-web/tkey-mpc-react-popup-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-react-native/tkey-react-native-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ npm run ios

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-react-native/tkey-rn-expo-auth0-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ npm run ios

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-web/quick-starts/tkey-angular-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-web/quick-starts/tkey-nextjs-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn dev

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-web/quick-starts/tkey-react-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-web/quick-starts/tkey-vue-quick-start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn serve

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-web/tkey-popup-flow-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
2 changes: 1 addition & 1 deletion tkey-web/tkey-redirect-flow-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn start

- [Website](https://web3auth.io)
- [Docs](https://web3auth.io/docs)
- [Guides](https://web3auth.io/docs/content-hub?type=guides)
- [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)
23 changes: 23 additions & 0 deletions tkey-web/tkey-solana-example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
37 changes: 37 additions & 0 deletions tkey-web/tkey-solana-example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Web3Auth tKey Solana Example

[![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/core-kit/tkey)
[![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's tKey with Solana in a React environment.

## How to Use

### Download Manually

```bash
npx degit tkey/tkey-examples/tkey-web/tkey-solana-example tkey-solana-example
```

Install & Run:

```bash
cd tkey-solana-example
npm install
npm run start
# or
cd tkey-solana-example
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)
32 changes: 32 additions & 0 deletions tkey-web/tkey-solana-example/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 c671531

Please sign in to comment.