mega-plant/lib/clock-pwa.ts

3 lines
173 B
TypeScript

export function clockAuthDestination(session:{passwordChanged:boolean}|null) {
return !session?'/clock/login':session.passwordChanged?'/clock':'/clock/change-password';
}