Invalid access token returned when using refresh token

Just FYI, I found a solution and posted here: