Auth0 Home Blog Docs

Backend Hapi and front end React - - what flow should I be using?



I have a React application talking to a backend API on HAPI - what should my auth0 flow and setup be? The backend HAPI also will serve IOS and Andriod client apps.


The back-end API will be represented in the APIs section of the dashboard and then all the client applications that want to call them should perform an authorization request (aka including the API audience parameter) in order to obtain an access token suitable to call the respective API. The access token will then be used on each call and since the access token will be in a JWT format the API will be able to validate it without additional calls and in such way allows access to each API operation.

The React application will be represented in the Clients section of the Dashboard and will need to obtain the suitable access token to then call the API.

The following links will be relevant for your use case: