User Management
Call user methods on the Fedo singleton. These must be called after Fedo.initialize and before showing any UI.
Required
setUserID
Identifies the current user to the backend. Call on login; clear on logout.
Fedo.setUserID("user-abc-123")
caution
Calling setUserID with a different ID than previously set clears the existing API token. The SDK re-authenticates with the new user identity.
Optional
setUserDisplayName
Display name shown on feedback and comments created by this user.
Fedo.setUserDisplayName("Jane Doe")
setUserEmail
Email associated with the user. Synced to the backend for notifications.
Fedo.setUserEmail("jane@example.com")
addUserProperty
Attach custom key-value metadata to the user (e.g. plan tier, team, beta cohort).
Fedo.addUserProperty("plan", "enterprise")
Fedo.addUserProperty("team", "design")
Properties are synced to the backend and available when viewing feedback.