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