def METHOD_NAME(self, user, admin=False, ttl=1):
    """Generate a bare payload, in case tests need to manipulate
    it directly before encoding."""
    now = int(time())
    return {
        "iss": self.JWT_ISSUER,
        "sub": user.pk,
        "aud": self.JWT_AUDIENCE,
        "nonce": "dummy-nonce",
        "exp": now + ttl,
        "iat": now,
        "preferred_username": user.username,
        "administrator": admin,
        "email": user.email,
        "locale": "en",
        "name": user.full_name,
        "given_name": "",
        "family_name": "",
    }