Get bearer token then create client