Skip to content

Updating main with upgrades to linkedin account and adding multiple 'others' for sociallinks#110

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

Updating main with upgrades to linkedin account and adding multiple 'others' for sociallinks#110
rxmox merged 6 commits into
mainfrom
backend

Conversation

@rxmox

@rxmox rxmox commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

rxmox added 6 commits April 9, 2026 18:43
New GET /api/auth/linkedin/link endpoint (protected, guest-only) that
initiates LinkedIn OAuth with the guest user's identity encoded in the
state JWT. The existing linkedinCallback detects the linking context
and atomically upgrades the guest user to authProvider 'linkedin',
populating linkedinId, email, profilePhoto, and name from LinkedIn.

Includes validation for non-guest users (403), already-linked accounts
(409), and LinkedIn accounts already tied to another user.
Extends the linkedin/link endpoint to accept both guest and local
users. Guest users still get fully upgraded to authProvider 'linkedin'.
Local users keep authProvider 'local' (preserving password login) and
gain linkedinId and profilePhoto from LinkedIn. Only fills in email
and profilePhoto when the user doesn't already have them set.
Convert socialLinks.other from a single string to a string array so
users can attach multiple miscellaneous social/profile URLs. Update the
updateUser and joinEventAsGuest body types and adjust the guest-join
contact-method guard to treat an array of blank strings as empty.

Docs (API_REFERENCE, DATABASE_SCHEMA) updated to match.
…ther-array

Allow multiple 'other' social links on user profile
…-linking

Add LinkedIn account linking for guest and local users
@rxmox
rxmox merged commit 6a903cf 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