# How to configure applications and APIs for serverless app

**URL:** <https://community.auth0.com/t/how-to-configure-applications-and-apis-for-serverless-app/90021>\
**Category:** Get Help\
**Tags:** jwt, login\
**Created:** [September 5, 2022, 1:39pm UTC](https://community.auth0.com/t/how-to-configure-applications-and-apis-for-serverless-app/90021 "2022-09-05T13:39:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patricio](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patricio/32/34109_2.png) [@patricio](https://community.auth0.com/u/patricio)\
**Post date:** [September 5, 2022, 1:39pm UTC](https://community.auth0.com/t/how-to-configure-applications-and-apis-for-serverless-app/90021/1 "2022-09-05T13:39:21Z")

</div>

I’m building an application with a single-page Angular front end consuming REST APIs for database operations.

The backend uses a classical AWS serverless architecture with lambda, API gateway, and DynamoDB. I’m using an Auth0 JWT endpoint as the authorizer for the backend.

I use the universal login in the front end to grant access to the application.

I would appreciate your feedback on the recommended architecture for this scenario on the Auth0 side.

Thanks in advance.

---

<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:** [September 30, 2022, 11:29pm UTC](https://community.auth0.com/t/how-to-configure-applications-and-apis-for-serverless-app/90021/3 "2022-09-30T23:29:56Z")

</div>

Hi @patricio,

Welcome to the Auth0 Community and apologies for the delayed response.

This is a fairly common architecture. You will have yourSPA registered in Auth0 and your APIs (or single logical API) registered as well. Your API will request access tokens and send them to your API(s) in exchange for data.

Here are a few good resources to start with:

> **[Auth0 Developer Resources](https://developer.auth0.com/resources)**
>
> Get access to Auth0 code samples and technical guides that cover different frameworks, languages, and platforms.

> **[Single-Page Applications (SPA) with API](https://auth0.com/docs/get-started/architecture-scenarios/spa-api)**
>
> Explains the architecture scenario where a single-page application (SPA) talks to an API using OpenID Connect (OIDC), and the OAuth 2.0 Implicit Grant Flow, to authenticate users with Auth0.

---

<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:** [October 14, 2022, 11:30pm UTC](https://community.auth0.com/t/how-to-configure-applications-and-apis-for-serverless-app/90021/4 "2022-10-14T23:30:44Z")

</div>

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