protected()
The Protected component enhances security by restricting access to authorized users, safeguarding sensitive content visibility for authenticated users.
Example:
In this example, the content enclosed within the component is rendered exclusively for authenticated users. If a user lacks authentication, the content remains invisible.
Last updated