Skip to content

feat(account): configurable activation URL + AUTH_ACTIVATION_ENABLED …#10

Merged
fupelaqu merged 1 commit into
mainfrom
feature/activationUrl
Jun 8, 2026
Merged

feat(account): configurable activation URL + AUTH_ACTIVATION_ENABLED …#10
fupelaqu merged 1 commit into
mainfrom
feature/activationUrl

Conversation

@fupelaqu

@fupelaqu fupelaqu commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

…env toggle

Closes #9.

The activation email link was hardcoded to ${baseUrl}/${path}/activate/<token> (backend, path-style), so it couldn't be pointed at an SPA frontend that expects a query-style token on a dedicated route (e.g. /activate?token=).

  • Add auth.activationUrl (mirrors auth.resetPasswordUrl) with a {token} placeholder and AUTH_ACTIVATION_URL override. Default reproduces the historical URL exactly, so existing consumers are unaffected. AccountNotifications now renders ActivationUrl.replace("{token}", token).
  • Allow toggling activation via env: auth.activation.enabled = ${?AUTH_ACTIVATION_ENABLED} (AccountSettings.ActivationEnabled already reads auth.activation.enabled).

Both changes are additive and default to current behavior. Version 0.8.4 -> 0.8.5.

…env toggle

Closes #9.

The activation email link was hardcoded to `${baseUrl}/${path}/activate/<token>`
(backend, path-style), so it couldn't be pointed at an SPA frontend that expects a
query-style token on a dedicated route (e.g. /activate?token=<token>).

- Add `auth.activationUrl` (mirrors auth.resetPasswordUrl) with a `{token}` placeholder
  and `AUTH_ACTIVATION_URL` override. Default reproduces the historical URL exactly, so
  existing consumers are unaffected. AccountNotifications now renders
  ActivationUrl.replace("{token}", token).
- Allow toggling activation via env: `auth.activation.enabled = ${?AUTH_ACTIVATION_ENABLED}`
  (AccountSettings.ActivationEnabled already reads auth.activation.enabled).

Both changes are additive and default to current behavior. Version 0.8.4 -> 0.8.5.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.72%. Comparing base (8a6b8b6) to head (90e4521).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #10   +/-   ##
=======================================
  Coverage   74.71%   74.72%           
=======================================
  Files          55       55           
  Lines        2567     2568    +1     
  Branches      361      407   +46     
=======================================
+ Hits         1918     1919    +1     
  Misses        649      649           
Flag Coverage Δ
unittests 74.72% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fupelaqu fupelaqu merged commit b7d9e6e into main Jun 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configurable activation URL (SPA-friendly) + AUTH_ACTIVATION_ENABLED env toggle

1 participant