Skip to content

Commit

Permalink
feat: custom display names for auth methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dphilipson committed Jan 10, 2025
1 parent 920e25f commit 5624fbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const CompletingOAuth = () => {
</div>

<h3 className="font-semibold text-lg">{`Continue with ${capitalize(
authStep.config.authProviderId
authStep.config.displayName ?? authStep.config.authProviderId
)}`}</h3>
<p className="text-fg-secondary text-center text-sm">
{`Follow the steps in the pop up window to sign in with ${capitalize(
Expand Down
2 changes: 2 additions & 0 deletions account-kit/react/src/components/auth/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ export type AuthType =
authProviderId: "auth0";
isCustomProvider?: false;
auth0Connection?: string;
displayName: string;
logoUrl: string;
}
| {
authProviderId: KnownAuthProvider;
isCustomProvider?: false;
auth0Connection?: never;
displayName?: never;
logoUrl?: never;
}
) &
Expand Down
1 change: 1 addition & 0 deletions examples/ui-demo/src/app/sections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function getSectionsForConfig(
authProviderId: "auth0",
mode: "popup",
auth0Connection: "twitter",
displayName: "X",
logoUrl: "/images/twitter.svg",
});
} else if (enabled) {
Expand Down

0 comments on commit 5624fbd

Please sign in to comment.