Spotify API Auth callback URI

I’m using spotify API to authenticate, and InappBrowser to connect on url and generate JSON the API works fine and I got the JSON on redirect URI
localhost:3000/auth/spotify/callback
But how can I use this data and authenticate? I’m trying to make a GET request on callback URI, but doesn’t work