Skip to content

Commit

Permalink
fix: add passkey link (#1148)
Browse files Browse the repository at this point in the history
* fix: add passkey link

* fix: added auth0 and passkey to links obj
  • Loading branch information
RobChangCA authored Nov 13, 2024
1 parent 8800a2b commit aa3ebf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { SocialIcon } from "../icons/social";
import { WalletIcon } from "../icons/wallet";
import ExternalLink from "../shared/ExternalLink";
import { Switch } from "../ui/switch";
import { links } from "@/utils/links";

export const Authentication = ({ className }: { className?: string }) => {
const { auth, setAuth } = useConfigStore(({ auth, setAuth }) => ({
Expand Down Expand Up @@ -125,7 +126,7 @@ export const Authentication = ({ className }: { className?: string }) => {
onClick={setAddFacebookAuth}
/>
<ExternalLink
href="https://accountkit.alchemy.com/signer/authentication/auth0"
href={links.auth0}
onClick={() => {
Metrics.trackEvent({ name: "clicked_custom_oauth_link" });
}}
Expand Down Expand Up @@ -156,7 +157,7 @@ export const Authentication = ({ className }: { className?: string }) => {
<p className="hidden lg:block font-normal text-sm text-secondary-foreground">
Add passkey after sign up
</p>
<ExternalLink href="https://aa-sdk-site-alpha.vercel.app/react/add-passkey?">
<ExternalLink href={links.passkey}>
<p className=" block lg:hidden font-normal text-sm text-secondary-foreground underline">
Add passkey after sign up
</p>
Expand Down
2 changes: 2 additions & 0 deletions examples/ui-demo/src/utils/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ export const links = {
// TODO: update once we have final links
quickstartGuide: "https://accountkit.alchemy.com/react/quickstart",
dashboard: `https://dashboard.alchemy.com/accounts?utm_source=demo_alchemy_com&utm_medium=referral&utm_campaign=demo_to_dashboard`,
passkey: "https://accountkit.alchemy.com/core/add-passkey",
auth0: "https://accountkit.alchemy.com/signer/authentication/auth0",
};

0 comments on commit aa3ebf9

Please sign in to comment.