Skip to content
Snippets Groups Projects
signUp.js 235 B
export function isRegistered(session, event) {
  if (!session) return false;
  const matches = event.signUps.filter(
    (signUp) => signUp.sub === session.info.payload.sub
  );
  if (matches.length > 0) return true;
  return false;
}