this looks weird to me. You are passing the raw token to setAccessToken now. If it was an internal method, it would be fine. But this is a public method. IMO, you need to split the public setter for the access token from the internal extraction of the access token from the raw token