# Compatibility of auth0-lock with Next.js Serverless Deployment

**URL:** <https://community.auth0.com/t/compatibility-of-auth0-lock-with-next-js-serverless-deployment/48451>\
**Category:** Get Help\
**Tags:** auth0-lock, embedded-login, embedded-lock, nextjs\
**Created:** [August 21, 2020, 6:01pm UTC](https://community.auth0.com/t/compatibility-of-auth0-lock-with-next-js-serverless-deployment/48451 "2020-08-21T18:01:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michellem](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michellem/32/12765_2.png) [@michellem](https://community.auth0.com/u/michellem)\
**Post date:** [August 21, 2020, 6:01pm UTC](https://community.auth0.com/t/compatibility-of-auth0-lock-with-next-js-serverless-deployment/48451/1 "2020-08-21T18:01:32Z")

</div>

My team and I are building a Next.js app and want to utilize the `auth0-lock` embedded login method. We plan to utilize a serverless deployment model with user information available on the backend.

I’ve reviewed many of the Auth0 blog articles related to authentication in Next.js, but I’m still unsure of what’s considered best practice for our situation. This [article](https://auth0.com/blog/ultimate-guide-nextjs-authentication-auth0/) suggests using `@auth0/nextjs-auth0`, but this SDK is still experimental and I’m not sure that it supports embedded login.

Is it currently possible to use an embedded login method in our type of serverless Next.js project? If so, which Auth0 tools/SDKs should be used?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![sevo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sevo/32/25777_2.png) [@sevo](https://community.auth0.com/u/sevo)\
**Post date:** [April 1, 2022, 3:49pm UTC](https://community.auth0.com/t/compatibility-of-auth0-lock-with-next-js-serverless-deployment/48451/2 "2022-04-01T15:49:03Z")

</div>

I am currently working on a similar project that requires embedded login in the context of a NextJS application. It would be great if the admins can comment on this thread.
