iMerica / dj-rest-auth

Authentication for Django Rest Framework
https://dj-rest-auth.readthedocs.io/en/latest/index.html
MIT License
1.63k stars 304 forks source link

No any way to determine whether signup or login while doing social login #512

Open subedibimal opened 1 year ago

subedibimal commented 1 year ago

Hello to the awesome developers of this package! I want to provide a "is_signup" field to the response after calling "/dj-rest-auth/google/" API endpoint. I can pass custom messages by overriding "post" method or "get_response" method but I cannot determine whether the user was created or the user just logged in for "is_signup" flag.

Could you please consider my request and provide me a good solution?

subedibimal commented 1 year ago

@iMerica Please have a look on this matter!