How do I develop against Authava locally?

18 views 1 answers Asked 5/13/2025

Is there a way to work with Authava in local development without having to hit production endpoints? I want to be able to test login and session behavior on localhost.

Anon User 9

Anon User 9

asked 5/13/2025

1 Answer

Accepted Answer

Yes! Authava supports local development in a couple ways:

  1. You can use the MockAuthavaClient class from @authava/client to simulate session behavior and user authentication locally without any backend calls.
  2. In your tenant dashboard, go to Domain Settings and enable the Local development toggle. This allows localhost to be accepted as a valid origin (CORS-friendly) while developing.

⚠️ We do not yet have a dedicated sandbox environment for heavy testing, but this is on our roadmap.

When you go live or enter production, make sure to disable the Local development setting to enforce strict origin validation and protect user sessions.

Ryan Hein

Ryan Hein

answered 5/13/2025

Ask a Question

Your Answer

You need to be logged in to answer this question.

Sign in to Answer