Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.