knox token lifetime code example Example: knox token lifetime from datetime import timedelta REST_KNOX = {'TOKEN_TTL': timedelta(hours=24)}