adding the "state" param to auth code url requests
adding endpoint for fetching pages