Getting token endpoint from config