# 404 on route "/forest/authentication" during init with serverless hosting

**URL:** <https://community.forestadmin.com/t/404-on-route-forest-authentication-during-init-with-serverless-hosting/6011>\
**Category:** Help me!\
**Created:** [February 21, 2023, 6:04pm UTC](https://community.forestadmin.com/t/404-on-route-forest-authentication-during-init-with-serverless-hosting/6011 "2023-02-21T18:04:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![myflightconnect](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@myflightconnect](https://community.forestadmin.com/u/myflightconnect)\
**Post date:** [February 21, 2023, 6:25pm UTC](https://community.forestadmin.com/t/404-on-route-forest-authentication-during-init-with-serverless-hosting/6011/2 "2023-02-21T18:25:28Z")

</div>

I’ve managed to do what I wanted following the post in [Error when logging in on Forest with admin backend deployed on AWS in lambda function - #16 by Cyril\_Limam](https://community.forestadmin.com/t/error-when-logging-in-on-forest-with-admin-backend-deployed-on-aws-in-lambda-function/465/16)

I’ve updated to app.js file to return an async createApp function. And the server.js to use “const app = await createApp();”

It works now 👌

---

_[View the full topic](https://community.forestadmin.com/t/404-on-route-forest-authentication-during-init-with-serverless-hosting/6011)._
