In order to validate some JWT from Facebook, I need to access to their public keys.
I'm running this code on my backend, and it returns an HTML with something like a "404 page", but, if I access it on my browser, is just works.
response = await fetch('/.well-known/oauth/openid/jwks/', {
method: 'GET',
redirect: 'follow',
follow: 100,
headers: {
Accept: 'application/json',
'Cache-Control': 'no-cache',
'Content-Type': 'application/json',
},
}).then(r => r.json());
Can you spot any issue there?
Why is Facebook blocking my calls?
Is there another way to do this?
I need to access to those public keys because I want to validate the AuthenticationToken coming from a "Login with Facebook" flow