I want to show secured data only to admins. In NextAuth->callbacks->session I'm checking database if user has admin privileges and add isAdmin flag. I don't know if this is most secured way and can anyone by doing fake request force getSession to give me wrong data.
export async function getServerSideProps(context) {
const session = await getSession(context);
if(session && session.isAdmin) {
..