function for dynamic secret token