Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken links of Examples #523

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/auth-provider-setup/aggregate-verifier.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@ const web3authProvider = await web3auth.connectTo("openlogin", {
:::info Example app

Check out the
[**full example on Github**](https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-no-modal-sdk/custom-authentication/aggregate-verifiers/auth0-google-aggregate-react-no-modal-example).
[**full example on Github**](https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-no-modal-sdk/custom-authentication/aggregate-verifier-examples/auth0-google-aggregate-no-modal-example).

:::
2 changes: 1 addition & 1 deletion docs/sdk/core-kit/mpc-core-kit/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ where login was initiated.
#### Service Worker Code

You can directly copy the service worker file code from here and paste in your respective folder. You can also find the code in our
[MPC Core Kit Example (Popup Flow)](https://github.com/Web3Auth/web3auth-core-kit-examples/blob/main/mpc-core-kit/mpc-core-kit-react-popup-example/src/App.tsx).
[MPC Core Kit Example (Popup Flow)](https://github.com/Web3Auth/web3auth-core-kit-examples/tree/main/mpc-core-kit-web/intrinsic-flow-examples/mpc-core-kit-popup-flow-example).

<details>
<summary>Service Worker Code</summary>
Expand Down
7 changes: 4 additions & 3 deletions docs/sdk/pnp/web/wagmi-connector.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ state and configuration, such as: auto-connection, connectors, and ethers provid

:::tip DEMO

Checkout the [example apps](https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/wagmi-connector) to see how wagmi works with Web3Auth.
Checkout the [example apps](https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-no-modal-sdk/wagmi/wagmi-no-modal-example) to see how
wagmi works with Web3Auth.

:::

Expand Down Expand Up @@ -383,8 +384,8 @@ Here are a few examples of a wagmi client using both the `Web3AuthConnector` and

:::tip examples

Checkout the various [examples](https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/wagmi-connector) made for the wagmi connector using
various UI Kits for better integration and user experience
Checkout the various [examples](https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-no-modal-sdk/wagmi/wagmi-no-modal-example) made for
the wagmi connector using various UI Kits for better integration and user experience

:::

Expand Down
100 changes: 50 additions & 50 deletions src/components/Examples/coreKitExamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export const CKTkey = [
key: "tkey-react-redirect-example",
title: "tKey in Redirect Flow",
icon: "logo-react.png",
path: `${baseURL}tkey/tkey-react-redirect-example`,
path: `${baseURL}tkey-web/intrinsic-flow-examples/tkey-redirect-flow-example`,
},
{
key: "tkey-react-popup-example",
title: "tKey in Popup Flow",
icon: "logo-react.png",
path: `${baseURL}tkey/tkey-react-popup-example`,
path: `${baseURL}tkey-web/intrinsic-flow-examples/tkey-popup-flow-example`,
},
],
},
Expand All @@ -30,19 +30,19 @@ export const MPCCK = [
key: "mpc-core-kit-react-popup-example",
title: "MPC Core Kit Popup Flow",
icon: "logo-react.png",
path: `${baseURL}mpc-core-kit/mpc-core-kit-react-popup-example`,
path: `${baseURL}mpc-core-kit-web/intrinsic-flow-examples/mpc-core-kit-popup-flow-example`,
},
{
key: "mpc-core-kit-react-redirect-example",
title: "MPC Core Kit Redirect Flow",
icon: "logo-react.png",
path: `${baseURL}mpc-core-kit/mpc-core-kit-react-redirect-example`,
path: `${baseURL}mpc-core-kit-web/intrinsic-flow-examples/mpc-core-kit-redirect-flow-example`,
},
{
key: "tkey-mpc-beta-react-popup-example",
title: "tKey MPC Popup Flow",
key: "mpc-core-kit-aggregate-verifier-example",
title: "MPC Core Kit Aggregate Example",
icon: "logo-react.png",
path: `${baseURL}mpc-core-kit/tkey-mpc-react-popup-example`,
path: `${baseURL}mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example`,
},
],
},
Expand All @@ -54,22 +54,34 @@ export const CKSFA = [
description: "",
tiles: [
{
key: "react-evm-sfa-example",
title: "Single Factor Auth Basic Example",
key: "sfa-web-google-example",
title: "SFA Web Google Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/react-evm-sfa-example`,
path: `${baseURL}single-factor-auth-web/sfa-web-google-example`,
},
{
key: "sfa-react-example",
title: "Single Factor Auth React Example",
key: "sfa-web-auth0-example",
title: "SFA Web Auth0 Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-react-example`,
path: `${baseURL}single-factor-auth-web/sfa-web-auth0-example`,
},
{
key: "sfa-react-vite-example",
title: "Single Factor Auth React (Vite) Example",
key: "sfa-web-custom-jwt-example",
title: "SFA Web Custom JWT Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-react-vite-example`,
path: `${baseURL}single-factor-auth-web/sfa-web-custom-jwt-example`,
},
{
key: "sfa-web-passwordless-example",
title: "SFA Web Passwordless Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-web-passwordless-example`,
},
{
key: "sfa-web-aggregate-verifier-example",
title: "SFA Web Aggregate Example",
icon: "logo-react.png",
path: `${baseURL}single-factor-auth-web/sfa-web-aggregate-verifier-example`,
},
],
},
Expand All @@ -82,9 +94,9 @@ export const CKSFAAndroid = [
tiles: [
{
key: "android-sfa-example",
title: "Single Factor Auth Android Example",
title: "SFA Android Example",
icon: "logo-android.png",
path: `${baseURL}single-factor-auth-android/android-sfa-firebase-example`,
path: `${baseURL}single-factor-auth-android/sfa-android-quick-start`,
},
],
},
Expand All @@ -97,9 +109,9 @@ export const CKSFAiOS = [
tiles: [
{
key: "ios-sfa-example",
title: "Single Factor Auth iOS Example",
title: "SFA iOS Example",
icon: "logo-apple.png",
path: `${baseURL}single-factor-auth-ios/ios-sfa-firebase-example`,
path: `${baseURL}single-factor-auth-ios/sfa-ios-quick-start`,
},
],
},
Expand All @@ -112,9 +124,9 @@ export const CKSFARN = [
tiles: [
{
key: "sfa-react-native-firebase-example",
title: "SFA React Native with Firebase",
title: "SFA React Native QuickStart",
icon: "logo-firebase.png",
path: `${baseURL}single-factor-auth-react-native/sfa-react-native-firebase-example`,
path: `${baseURL}single-factor-auth-react-native/sfa-rn-bare-quick-start`,
},
{
key: "sfa-rn-expo-auth0-example",
Expand All @@ -133,7 +145,7 @@ export const CKSFAFlutter = [
tiles: [
{
key: "flutter-sfa-example",
title: "Single Factor Auth Flutter Example",
title: "SFA Flutter Example",
icon: "logo-flutter.png",
path: "https://github.com/Web3Auth/single-factor-auth-flutter/tree/master/example",
},
Expand All @@ -148,27 +160,27 @@ export const CKTkeyiOS = [
tiles: [
{
key: "tkey-ios-example",
title: "CoreKit tKey iOS Example",
title: "tKey iOS Example",
icon: "logo-google.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-quick-start`,
},
{
key: "tkey-ios-aggregate-example",
title: "CoreKit tKey iOS Aggregate Example",
title: "tKey iOS Aggregate Example",
icon: "logo-apple.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-aggregate-verifier-example`,
},
{
key: "tkey-ios-auth0-example",
title: "CoreKit tKey iOS Auth0 Example",
title: "tKey iOS Auth0 Example",
icon: "logo-auth0.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-auth0-example`,
},
{
key: "tkey-ios-firebase-example",
title: "CoreKit tKey iOS Firebase Example",
title: "tKey iOS Firebase Example",
icon: "logo-firebase.png",
path: `${baseURL}tkey-ios/tkey-ios-google-example`,
path: `${baseURL}tkey-ios/tkey-ios-firebase-example`,
},
],
},
Expand All @@ -181,27 +193,15 @@ export const CKTkeyAndroid = [
tiles: [
{
key: "tkey-android-example",
title: "CoreKit tKey Android Example",
title: "tKey Android Example",
icon: "logo-google.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
path: `${baseURL}tkey-android/tkey-android-auth0-example`,
},
{
key: "tkey-android-aggregate-example",
title: "CoreKit tKey Android Aggregate Example",
title: "tKey Android QuickStart Example",
icon: "logo-android.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
},
{
key: "tkey-android-auth0-example",
title: "CoreKit tKey Android Auth0 Example",
icon: "logo-auth0.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
},
{
key: "tkey-android-firebase-example",
title: "CoreKit tKey Android Firebase Example",
icon: "logo-firebase.png",
path: `${baseURL}tkey-android/tkey-android-google-example`,
path: `${baseURL}tkey-android/tkey-android-quick-start`,
},
],
},
Expand All @@ -213,10 +213,10 @@ export const CKNode = [
description: "",
tiles: [
{
key: "node-backend-example",
title: "Node Backend Example",
key: "sfa-node-example",
title: "SFA Node Example",
icon: "logo-nodejs.png",
path: `${baseURL}node-sdk/node-backend-example`,
path: `${baseURL}single-factor-auth-node/sfa-node-quick-start`,
},
],
},
Expand Down
48 changes: 6 additions & 42 deletions src/components/Examples/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,8 @@ import {
import { CKNode, CKSFA, CKSFAAndroid, CKSFAFlutter, CKSFAiOS, CKSFARN, CKTkey, CKTkeyAndroid, CKTkeyiOS, MPCCK } from "./coreKitExamples";
import { PNPUnity, PNPUnreal } from "./pnpGamingExamples";
import { PNPAndroid, PNPFlutter, PNPIos, PNPRN } from "./pnpMobileExamples";
import {
PNPModalAdditional,
PNPModalEVM,
PNPModalOther,
PNPModalSolana,
PNPModalStarkEx,
PNPModalStarkNet,
PNPModalTezos,
PNPModalWagmi,
} from "./pnpModalExamples";
import {
PNPNoModalAdditional,
PNPNoModalCustomAuth,
PNPNoModalCustomAuthAggregate,
PNPNoModalEVM,
PNPNoModalOther,
PNPNoModalSolana,
PNPNoModalWagmi,
} from "./pnpNoModalExamples";
import { PNPModalWebExample } from "./pnpModalExamples";
import { PNPNoModalWebExample } from "./pnpNoModalExamples";
import styles from "./styles.module.css";

export default function QuickNavigation() {
Expand Down Expand Up @@ -161,33 +144,14 @@ export default function QuickNavigation() {
<h1>Sample Apps using Web3Auth {sdk}</h1>
{sdk === pnpwebmodal ? (
<>
<h2>EVM Chain Examples</h2>
<Tiles tileGroups={PNPModalEVM} />
<h2>Solana Blockchain Examples</h2>
<Tiles tileGroups={PNPModalSolana} />
<h2>Other Chain Examples</h2>
<Tiles tileGroups={PNPModalStarkEx} />
<Tiles tileGroups={PNPModalStarkNet} />
<Tiles tileGroups={PNPModalTezos} />
<Tiles tileGroups={PNPModalOther} />
<h2>Additional Examples</h2>
<Tiles tileGroups={PNPModalAdditional} />
<h2>Wagmi Connector Examples</h2>
<Tiles tileGroups={PNPModalWagmi} />
<h2>Blockchain React Examples</h2>
<Tiles tileGroups={PNPModalWebExample} />
</>
) : null}
{sdk === pnpwebnomodal ? (
<>
<h2>Blockchain Examples</h2>
<Tiles tileGroups={PNPNoModalEVM} />
<Tiles tileGroups={PNPNoModalSolana} />
<Tiles tileGroups={PNPNoModalOther} />
<h2>Custom Authentication Examples</h2>
<Tiles tileGroups={PNPNoModalAdditional} />
<Tiles tileGroups={PNPNoModalCustomAuth} />
<Tiles tileGroups={PNPNoModalCustomAuthAggregate} />
<h2>Wagmi Connector Examples</h2>
<Tiles tileGroups={PNPNoModalWagmi} />
<h2>Blockchain React Examples</h2>
<Tiles tileGroups={PNPNoModalWebExample} />
</>
) : null}
{sdk === pnpandroid ? <Tiles tileGroups={PNPAndroid} /> : null}
Expand Down
10 changes: 5 additions & 5 deletions src/components/Examples/pnpGamingExamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const PNPUnity = [
description: "",
tiles: [
{
key: "unity-example",
title: "Unity Basic Example",
key: "unity-quick-start",
title: "Unity QuickStart Example",
icon: "logo-unity.png",
path: `${baseURL}unity/unity-example`,
path: `${baseURL}unity/unity-quick-start`,
},
{
key: "unity-auth0-example",
Expand All @@ -18,10 +18,10 @@ export const PNPUnity = [
path: `${baseURL}unity/unity-auth0-example`,
},
{
key: "unity-google-emailpasswordless-example",
key: "unity-aggregate-verifier-example",
title: "Unity + Aggregate Verifier",
icon: "logo-google.png",
path: `${baseURL}unity/unity-google-emailpasswordless-example`,
path: `${baseURL}unity/unity-aggregate-verifier-example`,
},
],
},
Expand Down
Loading