Skip to content

Commit

Permalink
fix: ignore appname in the oauth flow if it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 27, 2024
1 parent dabc17c commit 11f1324
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
2 changes: 2 additions & 0 deletions lib/build/index2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,24 @@ export const AuthPageHeader = withOverride(
{/* empty span for spacing the back button */}
</span>
</div>
{oauth2ClientInfo && (
<div data-supertokens="authPageTitleOAuthClient">
{t("AUTH_PAGE_HEADER_TITLE_SIGN_IN_UP_TO_APP")}
{oauth2ClientInfo.clientUri !== undefined ? (
<a data-supertokens="authPageTitleOAuthClientUrl link" href={oauth2ClientInfo.clientUri}>
{oauth2ClientInfo.clientName}
</a>
) : (
<span data-supertokens="authPageTitleOAuthClientName">{oauth2ClientInfo.clientName}</span>
)}
</div>
)}
{oauth2ClientInfo &&
oauth2ClientInfo.clientName !== undefined &&
oauth2ClientInfo.clientName.length > 0 && (
<div data-supertokens="authPageTitleOAuthClient">
{t("AUTH_PAGE_HEADER_TITLE_SIGN_IN_UP_TO_APP")}
{oauth2ClientInfo.clientUri !== undefined ? (
<a
data-supertokens="authPageTitleOAuthClientUrl link"
href={oauth2ClientInfo.clientUri}>
{oauth2ClientInfo.clientName}
</a>
) : (
<span data-supertokens="authPageTitleOAuthClientName">
{oauth2ClientInfo.clientName}
</span>
)}
</div>
)}
{hasSeparateSignUpView &&
(!isSignUp ? (
<div data-supertokens="headerSubtitle secondaryText">
Expand Down

0 comments on commit 11f1324

Please sign in to comment.