I think you are talking about JWT(JSON Web Token) where the required information are encrypted and send to the client and the client has to send the token along with every request and the server will decrypt the token and get the information from it.
but the authentication in DRF is token-based authentication where token is generated and stored in both server and client side the client has to send request along with the token and the server verify the token against the token that it has in the DB.