turbo icon indicating copy to clipboard operation
turbo copied to clipboard

[feat] Social account authentication

Open leikoilja opened this issue 10 months ago • 2 comments

Hey guys. First of, thanks for a great boilerplate.

I was wondering if anyone has implemented social auth on top of this boilerplate repo? And if so, how would you approach it? I found a few articles where people have attempted adding django-allauth but all articles seem to be outdated and i simply wonder if that's a feasible solution to go for. Here is the latest articles i could find. And some older one here.

leikoilja avatar Feb 01 '25 22:02 leikoilja

Hey,

first of all, I never implemented social auth in django-allauth via API but after quick investigation this is how the implementation process should look like:

  1. django-allauth has a headless mode which exposes API
  2. once the headless mode is activated and API exposed it is needed to rewrite auth.ts to use new API so all the authentication occurrs on the backend side of frontend
  3. I believe after django-allauth implementation djangorestframework-simplejwt can be removed

lukasvinclav avatar Feb 02 '25 08:02 lukasvinclav

Indeed, the headless was implemented in allauth the last year https://docs.allauth.org/en/dev/headless/openapi-specification/

Mte90 avatar Jun 25 '25 16:06 Mte90