Api/oauth2/api/current_user/campaigns status: 401, statusText: 'UNAUTHORIZED' (Node.Js)

At the frontend I get an respone after authorization:
code: tu6iaRFSFUTpsxq1DeosyTlso8JUxl (token)
state: None

frontend:

const test = async () => {
( url, method,body, headers)
await request('/patreonApi/protected', 'POST', {token: tu6iaRFSFUTpsxq1DeosyTlso8JUxl}, {
ContentType: "application/x-www-form-urlencoded"
}).then(res => {
console.log(res)
})
};

backend:

const patreonApi = require('patreon');
const patreon = patreonApi.patreon;

router.post('/getUserInfo', (req, res) => {
    const {token} = req.body;
    console.log(token) // string - tu6iaRFSFUTpsxq1DeosyTlso8JUxl

const apiClient = patreon(token);

return apiClient('/current_user/campaigns')
    .then(({store}) => {
        const _user = store.find('user', id)
        const campaign = _user.campaign ? _user.campaign.serialize().data : null
        const page = oauthExampleTpl({
            name: _user.first_name,
            campaigns: [campaign]
        })
        return res.send(page)
    }).catch((err) => {
        const {status, statusText} = err
        console.log('Failed to retrieve campaign info')
        console.log(err)
        return res.json({status, statusText})
    })

});`

Response - Failed to retrieve campaign info
error: Body {
url: ‘https://www.patreon.com/api/oauth2/api/current_user/campaigns’,
status: 401,
statusText: ‘UNAUTHORIZED’,

}

I tried passing Creator’s Access Token. Everything works perfectly. But with a user token, I get an error.

The answer is that after receiving the first token, you need to use it as a key to get the real token, which should be used in api.
That is, we have 2 tokens. The first at the stage of user authorization. Second, when we give this token to the library.

const patreonApi = require('patreon');
const oauth = patreonApi.oauth;

const oauthClient = oauth(clientId, clientSecret);

router.post('/getToken', (req, res) => {
    const {preToken} = req.body;

    return oauthClient.getTokens(preToken, redirect)
        .then(({access_token}) => {
            console.log(access_token);
            res.json(access_token);
        })
        .catch((err) => {
            console.log(err);
            console.log('Redirecting to login');
            res.json(err)
        })
});