After successfully logging in, the user object returned is missing the roles attribute.
This is causing this line to throw an error in the react native app: const isAdmin: boolean = user.roles.findIndex(role => role === 'admin') !== -1; (sign-in.service.ts)
After successfully logging in, the user object returned is missing the
roles
attribute.This is causing this line to throw an error in the react native app:
const isAdmin: boolean = user.roles.findIndex(role => role === 'admin') !== -1;
(sign-in.service.ts)