Django rest framework - authentication

Hello. When logging in and logging out users in a Django rest framework project, can you use Django default authentication methods, I.e auth.login and auth.logout? Or do you have to use JWT for this? Thanks

You can use either JWT or Session auth. I would go with the session auth, check the docs here:

@timonweb So you can use django’s built in authentication system with django rest framework?

yes, you can use same users/sessions

@timonweb Great, thanks.