Skip to content

Commit

Permalink
Merge branch 'main' into linna/oauth-add-passkey
Browse files Browse the repository at this point in the history
  • Loading branch information
linnall committed Nov 13, 2024
2 parents 49309d8 + aa3ebf9 commit d5c0299
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 d5c0299

Please sign in to comment.