Skip to content

Fetch missing user data from Squarelet when issuing a JWT#413

Merged
allanlasser merged 1 commit into
masterfrom
jwt-get-create
Jun 22, 2026
Merged

Fetch missing user data from Squarelet when issuing a JWT#413
allanlasser merged 1 commit into
masterfrom
jwt-get-create

Conversation

@allanlasser

Copy link
Copy Markdown
Member

When creating an account to use Klaxon, we enter a race condition: we need Squarelet's webhook to fire and be handled by DocumentCloud in order to have a user row for the recently created account. This updates DocumentCloud's JWT authentication flow so that we check Squarelet for a user record before returning a 401. If a record exists, we save it and return it. If not, we fall back to standard 401 response.

@allanlasser allanlasser self-assigned this Jun 15, 2026
@allanlasser allanlasser merged commit ebaed99 into master Jun 22, 2026
3 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.

2 participants