import { REFRESH_TOKEN_SAFETY_MARGIN } from '../../constants' ; param expiresIn export function computeNextRefreshTokenTime ( expiresIn ) { return expiresIn ? new Date ( Date . now ( ) + expiresIn * 1000 - REFRESH_TOKEN_SAFETY_MARGIN ) : undefined ; }