Skip to content

feat(session): Add platform identification for macOS users - #19

Open
Okladnoj wants to merge 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
OKJID:feature/mac-platform-identification
Open

feat(session): Add platform identification for macOS users#19
Okladnoj wants to merge 1 commit into
GeneralsOnlineDevelopmentTeam:mainfrom
OKJID:feature/mac-platform-identification

Conversation

@Okladnoj

Copy link
Copy Markdown
Contributor

Players asked to display a platform indicator (Mac/Windows) in the game client so they can see who is playing on what system, since we haven't made CRC compatibility between win and mac yet. Having a platform flag is also generally useful for future service development.

Propagated the platform field from the login/token request bodies to UserSession, RoomMember, and LobbyMember. This exposes the platform info to the client so it can render the platform icon/status.

@Okladnoj
Okladnoj force-pushed the feature/mac-platform-identification branch 2 times, most recently from 857bc2f to eefbfb5 Compare August 25, 2026 10:38
The platform is reported once at login and carried as a claim on the session
and refresh tokens, so it stays bound to the session type it was issued for
and survives token rotation.

Values are clamped to a known set before being issued, since the field is
self-reported by the client and echoed to every other member of a lobby.
@Okladnoj
Okladnoj force-pushed the feature/mac-platform-identification branch from eefbfb5 to 8fe8b30 Compare August 25, 2026 10:59
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