Hey Simon,
I understand if you don't provide support, but if you know how to help, that would be great.
I installed my public key by posting this to https://api.bunq.com/v1/installation:
{
"client_public_key": "-----BEGIN PUBLIC KEY-----\nASDFSADFlsadfjiasdlfjalsdfjlasdnfSDfSADFASDfASdfasdFSADfSdfsadFSAdfsaDfSdfaSdfasDfsDFSdF\/\/\sdfkjasdlkfsdJKFKJlsdfiuf90f049hfifofno\n-----END PUBLIC KEY-----\n"
}
and got back a token. When I use this token with this code to register the device
const bunq = new Bunq(AUTH_TOKEN, API_TOKEN, privateKey);
let userId;
bunq.postDeviceServer('Local app to see my money').then(function(response) {
console.log('response', response)
}).catch(function(error) {
console.error('error', error);
})
I get this error
{
"Error": [
{
"error_description": "Insufficient authentication.",
"error_description_translated": "Insufficient authentication."
}
]
}
I used a fresh API key from the Bunq app and updated the URL to const https://api.bunq.com
.
Can you see what I'm doing wrong?