Hello Guys,
I'm developing a mobile app and website with one Django backend. all web browser(mobile browser included) using session auth and mobile app using Rest API with OAuth 2 authentications. I would like to know the best way to handle Django middleware with web and mobile app.
For example, there are using verification middleware. currently, I'm trying to do if user not verifies then redirect to the verification page but this method hard to handle mobile app.i cant check mobile device method also because of mobile also behaviour like a web browser.
one solution is using custom Django decorator
Is there are any other solution for this method?
Thanks