Skip to content

Backend - #119

Merged
rxmox merged 4 commits into
mainfrom
backend
Apr 30, 2026
Merged

Backend#119
rxmox merged 4 commits into
mainfrom
backend

Conversation

@rxmox

@rxmox rxmox commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator
  • added better logging for jwt error
  • changed socialLinks.other to array of {label, url}

rxmox added 4 commits April 30, 2026 13:48
Replaces the silent catch in the LinkedIn callback's state verification
with a console.error that records the jwt error name, message, and
state length. Lets us distinguish expired tokens, signature mismatches,
and malformed input from logs without changing the 401 response.
Match the shape mobile is sending: each 'other' social link now has a
required label (display name) and url. Replace the [String] sub-schema
with a typed sub-schema (no _id on entries), update the request body
types in updateUser and joinEventAsGuest, and adjust the guest-join
contact-method guard to require a non-empty url on at least one entry.

Also enable runValidators on the updateUser updateOne so the new
sub-schema's required-field rules are enforced on partial updates,
preventing silent acceptance of malformed entries.

Refresh API_REFERENCE and DATABASE_SCHEMA to match.
…ther-objects

Change socialLinks.other to array of {label, url} entries
…-debug-log

Log jwt error details when LinkedIn state verification fails
@rxmox
rxmox merged commit 2c4716f into main Apr 30, 2026
2 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.

1 participant