public static bool IsStudent(CcValidatedToken validatedToken) => validatedToken.CcClaims.First(a => a.ClaimType == CcClaimType.UserType).Value == "Student";
public static bool IsEducator(CcValidatedToken validatedToken) => validatedToken.CcClaims.First(a => a.ClaimType == CcClaimType.UserType).Value == "Educator";
public static int GetEducatorId(CcValidatedToken validatedToken) => int.Parse(validatedToken.CcClaims.First(a => a.ClaimType == CcClaimType.EducatorId).Value);
public static int GetPortfolioId(CcValidatedToken validatedToken) => int.Parse(validatedToken.CcClaims.First(a => a.ClaimType == CcClaimType.StudentPortfolioId).Value);
public static string GetUserType(CcValidatedToken validatedToken) => validatedToken.CcClaims.First(a => a.ClaimType == CcClaimType.UserType).Value;