make getAccessTokenFromCode a public method. We could use it during the server side oauth authetication