getting client credentials and token works with new architecture (rearranged saveAuthModal to make this happen)