How to use AllAuth with REST only API and no template rendering?

I want to implement AllAuth for signup, email verification, login and logout. But my frontend is a mobile application and having template SSR is not what I want. I can’t seem to understand the headless mode in allauth and its configuration.

Another problem I have is returning JWT token after login. Do I use a custom adapter or view for this?

Allauth has an example repo showing how to set up a react app against their headless API. Maybe this will help you?

This makes it even more confusing.

Thanks for the help. I’ve managed to figure it out. The confusing part was the choice of codes. 401 for partial success? All the code choices are a bit confusing.