'Generate a bare payload, in case tests need to manipulate
it directly before encoding.'

def default_payload(self, user, ttl=1):

    now = int(time())
    return {'iss': self.JWT_ISSUER, 'aud': self.JWT_AUDIENCE, 'nonce': 'dummy-nonce', 'exp': (now + ttl), 'iat': now, 'username': user.username, 'email': user.email}
