protected()
The Protected component enhances security by restricting access to authorized users, safeguarding sensitive content visibility for authenticated users.
Last updated
The Protected component enhances security by restricting access to authorized users, safeguarding sensitive content visibility for authenticated users.
Last updated
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.