Is there a way to configure Django Rest Framework to store token information in Redis rather than the Database ?
You can create your own custom authentication backend which stores tokens in redis. From the documentation:
To implement a custom authentication scheme, subclass BaseAuthentication and override the .authenticate(self, request) method. The method should return a two-tuple of (user, auth) if authentication succeeds, or None otherwise.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With