iMerica / dj-rest-auth

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

Login immediately on register when using JWT HTTP only #460

Open ainthateasy opened 1 year ago

ainthateasy commented 1 year ago

Hi there,

Is there a way to have a user logged in immediately on register? I have set ACCOUNT_EMAIL_VERIFICATION = 'optional' and want the flow to have a user logged in once they register (then verify email at their convinience), but the register view doesn't set the JWT cookies so the user is still required to hit the Login view separately after registering...

Is there a configuration or adjustment I can make to log in a user with JWT immediately after they register?

Thanks :)