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