Authorization Code Flow - Backend Node #340
Unanswered
DrMattFaulkner
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm running a backend service using Typescript. I have an API which receives an authorization code and would like to exchange for the tokens. The examples in the documentation all seem to expect the input parameters to be URL based.
Assuming my backend received the code would the sensible way to do this be:
`
var params = {
code: “abcdefghijklmno”
};
const tokenSet = await client!.callback(
${getDomain()}/auth/callback
,params
);
console.log ( "token set is: " + JSON.stringify(tokenSet) );
`
Beta Was this translation helpful? Give feedback.
All reactions