Authentication api dynamic cache

Added preference for the local storage retention time