refactor: update application name and related identifiers from Analytics to Pulse for consistent branding across the codebase

This commit is contained in:
Usman Baig
2026-01-19 17:20:01 +01:00
parent b8c129a62a
commit 5d867dd519
7 changed files with 11 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ import { cookies } from 'next/headers'
const AUTH_API_URL = process.env.NEXT_PUBLIC_AUTH_API_URL || process.env.NEXT_PUBLIC_AUTH_URL || 'http://localhost:8081'
// * Determine cookie domain dynamically
// * In production (on ciphera.net), we want to share cookies with subdomains (e.g. analytics-api.ciphera.net)
// * In production (on ciphera.net), we want to share cookies with subdomains (e.g. pulse-api.ciphera.net)
// * In local dev (localhost), we don't set a domain
const getCookieDomain = () => {
if (process.env.NODE_ENV === 'production') {
@@ -37,7 +37,7 @@ export async function exchangeAuthCode(code: string, codeVerifier: string, redir
body: JSON.stringify({
grant_type: 'authorization_code',
code,
client_id: 'analytics-app',
client_id: 'pulse-app',
redirect_uri: redirectUri,
code_verifier: codeVerifier,
}),