def _make_header(self, token_type=None, signing_algorithm=None):
        """
        Make a JWT header
        """
        if not token_type:
            token_type = self.token_type

        if not signing_algorithm:
            signing_algorithm = self.signing_algorithm

        header = {'typ': token_type, 'alg': signing_algorithm}
        return header
Make a JWT header