JWT Users #
The JWT Users tab in the Cosync Portal is a central tool for administering JWT users within a JWT-enabled application. It provides a range of functionalities, including the ability to:
- See all users
- See all anonymous users
- Search for a user
- Add a user
- Delete a user
- Lock a user out
- Reset a user password
- View all user invitations
- View all user signups
The JWT Users tab in the Cosync Portal shares some similarities with the Realm Users tab, as it displays MongoDB Realm Application user IDs for registered users. Generally, there is a one-to-one mapping between JWT users and Realm users. However, in instances where the developer has disabled JWT Enabled, the JWT Users tab will not be visible, while the Realm Users tab will still contain user data.
The JWT Users tab provides an overview of all JWT users in the application, showcasing their login timestamps and onboarding methods, whether through signup or invitation. Users can be filtered using a search feature based on the handle they used to sign up.
User onboarding typically occurs through signup or invitations. The JWT Users tab offers the “Add User” button, enabling direct user addition to the application from the portal.
If the application settings include metadata for users, specific metadata for each user can be viewed by clicking the “Show Metadata” button in their respective rows.
The User sub-tab presents three icons that allow developers to manage user attributes:
- The first icon enables developers to delete a JWT user from the application.
- The second icon acts as a toggle, permitting developers to suspend or activate a user in the application. Suspended users cannot log into the application.
- The last icon permits developers to reset a user’s password.
The Invitation sub-tab displays all issued invitations within the system. The “Status” field reflects whether an invited user has activated their invitation and onboarded into the application (active) or if it remains pending.
The Signup sub-tab lists all users who onboarded through the signup process.
Lastly, the developer can inspect and edit user medadata through the Show Metadata button in the Metadata column of the User subtab.