# SDK for the Authorization Code flow to be used in NodeJS-based AWS Lambda

**URL:** <https://community.auth0.com/t/sdk-for-the-authorization-code-flow-to-be-used-in-nodejs-based-aws-lambda/111207>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, node-auth0\
**Created:** [July 13, 2023, 1:57pm UTC](https://community.auth0.com/t/sdk-for-the-authorization-code-flow-to-be-used-in-nodejs-based-aws-lambda/111207 "2023-07-13T13:57:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanM](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@IvanM](https://community.auth0.com/u/IvanM)\
**Post date:** [July 13, 2023, 1:57pm UTC](https://community.auth0.com/t/sdk-for-the-authorization-code-flow-to-be-used-in-nodejs-based-aws-lambda/111207/1 "2023-07-13T13:57:31Z")

</div>

Hello community,

Could you please suggest the Auth0 SDK that I can use for the Authorization Code flow in NodeJS-based AWS Lambda?

I already have a working version that implements that flow by sending /authorize and then the /oauth/token requests, verifying the token, and storing it into a cookie (something similar [to this](https://github.com/martzcodes/blog-cdk-cloudfront-edge-auth0/blob/37e6a26fb59dcf75ff1fe1a2669f691a091592f4/lib/auth.ts#L173) )  
But maybe there is a lightway SDK that can do that for me, so I don’t need to worry that OIDC logic is implemented correctly?

Thanks

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 14, 2023, 7:24pm UTC](https://community.auth0.com/t/sdk-for-the-authorization-code-flow-to-be-used-in-nodejs-based-aws-lambda/111207/3 "2023-07-14T19:24:16Z")

</div>

Hi @IvanM,

Welcome to the Auth0 Community!

Do you simply need to validate a token? Or are you looking for an SDK that handles the calls to /authorize, /token, etc.?

---

<div class="post-metadata">

**Author:** ![IvanM](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@IvanM](https://community.auth0.com/u/IvanM)\
**Post date:** [July 15, 2023, 5:32am UTC](https://community.auth0.com/t/sdk-for-the-authorization-code-flow-to-be-used-in-nodejs-based-aws-lambda/111207/4 "2023-07-15T05:32:51Z")

</div>

Thanks for the reply, Dan.

I’m looking for the SDK to handle the calls /authorize, /token and do the token validation.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 17, 2023, 4:28pm UTC](https://community.auth0.com/t/sdk-for-the-authorization-code-flow-to-be-used-in-nodejs-based-aws-lambda/111207/5 "2023-07-17T16:28:39Z")

</div>

I’m not sure if this will do exactly what you want, but our [GitHub - auth0/express-openid-connect: An Express.js middleware to protect OpenID Connect web applications.](https://github.com/auth0/express-openid-connect) package is what we typically recommend for regular web apps.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 14, 2023, 3:47pm UTC](https://community.auth0.com/t/sdk-for-the-authorization-code-flow-to-be-used-in-nodejs-based-aws-lambda/111207/6 "2023-08-14T15:47:24Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
