code: def validate_token_age(callback_token):
      
      try:
          token = CallbackToken.objects.get(key=callback_token, is_active=True)
          seconds = (timezone.now() - token.created_at).total_seconds()
          token_expiry_time = api_settings.PASSWORDLESS_TOKEN_EXPIRE_TIME
  
          if seconds <= token_expiry_time:
              return True
          else:
              # Invalidate our token.
              token.is_active = False
              token.save()
              return False
  
      except CallbackToken.DoesNotExist:
          # No valid token.
          return False
docs: Returns True if a given token is within the age expiration limit.