templatize secret_token