Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(auth): remove em-dash usage in auth pages and templates (#66699)

Fernando Gomes4fc684dc8917
diff --git a/frontend/src/lib/oauth/oauthClient.ts b/frontend/src/lib/oauth/oauthClient.ts
index 1285e4b742b2..c4c8896e2979 100644
--- a/frontend/src/lib/oauth/oauthClient.ts
+++ b/frontend/src/lib/oauth/oauthClient.ts
@@ -154,7 +154,7 @@ export async function buildAuthorizeUrl(pending: PendingAuth): Promise<string> {
/** Exchange the authorization code for tokens and persist the session. */
export async function exchangeCodeForToken(pending: PendingAuth, code: string, state: string): Promise<OAuthSession> {
if (pending.state !== state) {
- throw new Error('OAuth state mismatch — please start the login again.')
+ throw new Error('OAuth state mismatch. Please start the login again.')
}
// Trailing slash is required: CORS_URLS_REGEX only grants CORS headers to `/oauth/token/`.
const response = await fetch(`${pending.backendHost}/oauth/token/`, {
diff --git a/frontend/src/lib/oauth/oauthLogic.ts b/frontend/src/lib/oauth/oauthLogic.ts
index 0adf1c52697c..89c1ebb9cf6f 100644
--- a/frontend/src/lib/oauth/oauthLogic.ts
+++ b/frontend/src/lib/oauth/oauthLogic.ts
@@ -65,7 +65,7 @@ export const oauthLogic = kea<oauthLogicType>([
handleCallback: async ({ code, state }) => {
const { pendingAuth } = values
if (!pendingAuth) {
- actions.setLoginError('No pending OAuth flow found — please start the login again.')
+ actions.setLoginError('No pending OAuth flow found. Please start the login again.')
return
}
try {
@@ -95,7 +95,7 @@ export const oauthLogic = kea<oauthLogicType>([
if (searchParams.code) {
actions.handleCallback(searchParams.code, searchParams.state)
} else if (!searchParams.error) {
- actions.setLoginError('No authorization code received — please start the login again.')
+ actions.setLoginError('No authorization code received. Please start the login again.')
}
},
})),
diff --git a/frontend/src/scenes/authentication/cli/CLIAuthorize.tsx b/frontend/src/scenes/authentication/cli/CLIAuthorize.tsx
index b5be36c3e1aa..4e0d6cc7de5b 100644
--- a/frontend/src/scenes/authentication/cli/CLIAuthorize.tsx
+++ b/frontend/src/scenes/authentication/cli/CLIAuthorize.tsx
@@ -127,7 +127,7 @@ export function CLIAuthorize(): JSX.Element {
/>
</div>
<p className="text-muted text-sm mb-2">
- Permissions granted to the CLI. Pick a preset or fine-tune individual scopes — only grant
+ Permissions granted to the CLI. Pick a preset or fine-tune individual scopes. Only grant
what you need.
</p>
diff --git a/frontend/src/scenes/authentication/shared/OtherRegionHint.tsx b/frontend/src/scenes/authentication/shared/OtherRegionHint.tsx
index 7ea62f170208..d1f2af2226e4 100644
--- a/frontend/src/scenes/authentication/shared/OtherRegionHint.tsx
+++ b/frontend/src/scenes/authentication/shared/OtherRegionHint.tsx
@@ -33,7 +33,7 @@ export function OtherRegionHint(): JSX.Element | null {
return (
<LemonBanner type="info">
- Already have a PostHog Cloud account? It may live in our {otherRegion} region — you're currently on{' '}
+ Already have a PostHog Cloud account? It may live in our {otherRegion} region. You're currently on{' '}
{preflight.region}.{' '}
<Link
to={otherRegionLoginUrl(preflight.region, location.search)}
diff --git a/frontend/src/scenes/authentication/signup/variants/paper-desk/PaperDeskSignup.tsx b/frontend/src/scenes/authentication/signup/variants/paper-desk/PaperDeskSignup.tsx
index 5a8e489507c0..ee86da8b1fdd 100644
--- a/frontend/src/scenes/authentication/signup/variants/paper-desk/PaperDeskSignup.tsx
+++ b/frontend/src/scenes/authentication/signup/variants/paper-desk/PaperDeskSignup.tsx
@@ -154,7 +154,7 @@ function PendingInvitePanel(): JSX.Element {
{pendingInviteResent ? (
<div className="flex gap-2 items-start py-2.5 px-3 text-sm text-primary text-left bg-success-highlight border border-success rounded">
<span className="font-bold text-success">✓</span>
- <span>Sent. Look for an email from {org} — the link inside takes you straight in.</span>
+ <span>Sent. Look for an email from {org}. The link inside takes you straight in.</span>
</div>
) : (
<div className="flex flex-col gap-2.5">
diff --git a/frontend/src/scenes/authentication/verify-email/variants/paper-desk/PaperDeskVerifyEmail.tsx b/frontend/src/scenes/authentication/verify-email/variants/paper-desk/PaperDeskVerifyEmail.tsx
index fe79938e5ad5..8abf39796e68 100644
--- a/frontend/src/scenes/authentication/verify-email/variants/paper-desk/PaperDeskVerifyEmail.tsx
+++ b/frontend/src/scenes/authentication/verify-email/variants/paper-desk/PaperDeskVerifyEmail.tsx
@@ -225,7 +225,7 @@ function VerifyEmail(): JSX.Element {
Check your inbox
</h1>
<p className="PaperDesk__sub mt-2 mb-4 text-sm text-secondary text-center text-pretty">
- We sent you a verification link. Click the link inside and you're in — it's valid for 24 hours.
+ We sent you a verification link. Click the link inside and you're in. It's valid for 24 hours.
</p>
<NotSeeingIt />
</div>
diff --git a/frontend/src/toolbar/bar/AuthConfirmModal.tsx b/frontend/src/toolbar/bar/AuthConfirmModal.tsx
index e646b78297b5..c669878e1fcc 100644
--- a/frontend/src/toolbar/bar/AuthConfirmModal.tsx
+++ b/frontend/src/toolbar/bar/AuthConfirmModal.tsx
@@ -139,7 +139,7 @@ export function AuthConfirmModal({ visible, onClose }: AuthConfirmModalProps): J
<p className="flex items-center gap-1">
<IconWarning className="text-warning shrink-0" />
<span>
- Only continue if you recognize this domain as your PostHog instance — signing in elsewhere could
+ Only continue if you recognize this domain as your PostHog instance. Signing in elsewhere could
expose your account.
</span>
</p>
diff --git a/posthog/templates/auth_md.md b/posthog/templates/auth_md.md
index 60eb58d6c835..c25964f77496 100644
--- a/posthog/templates/auth_md.md
+++ b/posthog/templates/auth_md.md
@@ -25,13 +25,13 @@ The user-claimed device flow (`service_auth`, `anonymous`) is not supported yet.
## Scopes
-{% for scope, description in scopes %}- `{{ scope }}` — {{ description }}
+{% for scope, description in scopes %}- `{{ scope }}`: {{ description }}
{% endfor %}
## Changing scopes
Access tokens carry the scope set granted when they were issued.
-Scopes do not change on refresh — refreshing a token returns the same or narrower scopes, never more.
+Scopes do not change on refresh. Refreshing a token returns the same or narrower scopes, never more.
If your app needs additional scopes, for example a newly required scope, or a request that returns `403` because the token is missing a required scope, start a new authorization at `{{ base_url }}/oauth/authorize/`.
The user re-consents and the new token carries the updated scopes.
diff --git a/posthog/templates/email/2fa_backup_code_used.html b/posthog/templates/email/2fa_backup_code_used.html
index 5535bb113fd8..f0be72c9a064 100644
--- a/posthog/templates/email/2fa_backup_code_used.html
+++ b/posthog/templates/email/2fa_backup_code_used.html
@@ -4,6 +4,6 @@
<p>Someone used a backup code to bypass two-factor authentication and access {{ user_email }}.</p>
-<p>Hopefully, that was you—if so, there's no need for alarm. If it wasn't you then you should let us know urgently, as someone may have accessed your account without your permission. And that would be bad. </p>
+<p>Hopefully, that was you. If so, there's no need for alarm. If it wasn't you then you should let us know urgently, as someone may have accessed your account without your permission. And that would be bad. </p>
{% endblock %}
diff --git a/posthog/templates/email/delegation_invite.html b/posthog/templates/email/delegation_invite.html
index e5dce8dc3535..5c6d006b739c 100644
--- a/posthog/templates/email/delegation_invite.html
+++ b/posthog/templates/email/delegation_invite.html
@@ -6,7 +6,7 @@
<p class="text-center">
<strong>{{ inviter_first_name }}</strong> ({{ inviter_email }}) started setting up PostHog for
<strong>{{ org_name }}</strong> and would like you to finish the setup. Accept the invitation below to get
- started — you'll be taken through the full setup flow.
+ started. You'll be taken through the full setup flow.
</p>
<p class="text-center">
PostHog is an all-in-one platform for product analytics, session replays, feature flags, experiments, surveys,