protected()
The Protected component enhances security by restricting access to authorized users, safeguarding sensitive content visibility for authenticated users.
import { Protected } from '@magicjs.dev/frontend';
return (
<Protected>
<div>This is protected content.</div>
</Protected>
);Last updated