Replies: 2 comments 2 replies
-
For some reason I'm getting a const issuer = new URL("https://accounts.google.com");
const discoveryResponse = await oauth.discoveryRequest(issuer) When I call it manually, it works... const res = await fetch("https://accounts.google.com/.well-known/openid-configuration",{
headers: {
"accept": "application/json"
},
method: "GET",
redirect: "manual",
})
console.log(await res.json()); |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is correct.
I'm not. I assume something is amiss in your runtime. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Super new to this library and not an expert in oauth flow but... based on the examples for Authorization Code Flow using discoveryRequest... I'm getting errors at the very first part.
If I try with Google and
oidc
:So I think the discoveryResponse is not working... when I try to console log, I'm getting...
So the url is wrong...? Am I misunderstanding how this should work or...?
Edit: It works when I copy the
discoveryRequest
function into my own code and call it. I guess there's something really funky going on in my end, but not sure what...Beta Was this translation helpful? Give feedback.
All reactions