Django web app - how to stay logged in

Hi there,

I’ve just started using auth0 in a project and have a strange use case where I want to display my web app 24/7 on a TV which auto refreshes every half hour. Problem being after 1 month (the max allowed period) auth0 will auto logout and on next refresh will then sit at the login screen.

To implement auth0 in my django app I followed the instructions at:

I have learnt a small bit about refresh tokens but I’m unsure on how I could implement these into the example code that I used in the above quickstart instructions.

Has anyone done this before or could point me in the right direction?


Hi @joshendy,

Welcome to the Community!

How will the user authenticate on the TV? This sounds similar to a device flow use-case. Let me know if that solves this problem without having to work around too much.