@huaqiu/dsh-auth 0.6.22 → 0.6.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/service.ts CHANGED
@@ -112,6 +112,11 @@ export interface HuaqiuAuthService {
112
112
  * or null when none was configured (standalone keeps its PROD default).
113
113
  */
114
114
  readonly subscriptionOrigin: string | null
115
+ /**
116
+ * Full「Go to profile」URL injected by HQ Edge (`config.profileUrl`), or null
117
+ * when none was configured — the browser half then keeps its PROD default.
118
+ */
119
+ readonly profileUrl: string | null
115
120
  }
116
121
 
117
122
  const PERSIST_FILE = 'session.json'
@@ -246,6 +251,7 @@ export class InMemoryHuaqiuAuthService implements HuaqiuAuthService {
246
251
  this.subscriptionOrigin = resolved.subscriptionOrigin?.length
247
252
  ? resolved.subscriptionOrigin
248
253
  : null
254
+ this.profileUrl = resolved.profileUrl?.length ? resolved.profileUrl : null
249
255
  this.log.info('auth service started', {
250
256
  hostMode: this.hostMode,
251
257
  hostAuthPath: resolved.hostAuthPath,
@@ -266,6 +272,8 @@ export class InMemoryHuaqiuAuthService implements HuaqiuAuthService {
266
272
  readonly subscriptionApiBaseUrl: string | null
267
273
  /** Subscription origin resolved by HQ Edge (`HQ_AI_ENV`); null → standalone. */
268
274
  readonly subscriptionOrigin: string | null
275
+ /**「Go to profile」URL resolved by HQ Edge (`HQ_AI_ENV`); null → standalone. */
276
+ readonly profileUrl: string | null
269
277
 
270
278
  readonly auth: HuaqiuAuthApi = {
271
279
  isAuthenticated: async () => {