Django-Allauth: How to authenticate users via Chrome extension?

I’m building a Django web app with django-allauth handling user authentication.

As title, how do you expose a RESTful API to authenticate users from a Chrome extension? Taking into account of both:

  1. locally stored username & password hash string pairs and
  2. third party social log-in providers?

What is the best or simplest way to do this?