sanic_jwt/authentication.py
def _get_token(self, request, refresh_token=False):
        """
        Extract a token from a request object.
        """
        if self.config.cookie_set():
            token = self._get_token_from_cookies(request, refresh_token)
            if token:
                return token

            else:
                if self.config.cookie_strict():
                    raise exceptions.MissingAuthorizationCookie()

        if self.config.query_string_set():
            token = self._get_token_from_query_string(request, refresh_token)
            if token:
                return token

            else:
                if self.config.query_string_strict():
                    raise exceptions.MissingAuthorizationQueryArg()

        token = self._get_token_from_headers(request, refresh_token)

        if token:
            return token

        raise exceptions.MissingAuthorizationHeader()

        Extract a token from a request object.
        
Extract a token from a request object.
Extract a token from a request object .
def _get_token(self, request, refresh_token=False):
        if self.config.cookie_set():
            token = self._get_token_from_cookies(request, refresh_token)
            if token:
                return token
            else:
                if self.config.cookie_strict():
                    raise exceptions.MissingAuthorizationCookie()
        if self.config.query_string_set():
            token = self._get_token_from_query_string(request, refresh_token)
            if token:
                return token
            else:
                if self.config.query_string_strict():
                    raise exceptions.MissingAuthorizationQueryArg()
        token = self._get_token_from_headers(request, refresh_token)
        if token:
            return token
        raise exceptions.MissingAuthorizationHeader()
def _get_token ( self , request , refresh_token = False ) : if self . config . cookie_set ( ) : token = self . _get_token_from_cookies ( request , refresh_token ) if token : return token else : if self . config . cookie_strict ( ) : raise exceptions . MissingAuthorizationCookie ( ) if self . config . query_string_set ( ) : token = self . _get_token_from_query_string ( request , refresh_token ) if token : return token else : if self . config . query_string_strict ( ) : raise exceptions . MissingAuthorizationQueryArg ( ) token = self . _get_token_from_headers ( request , refresh_token ) if token : return token raise exceptions . MissingAuthorizationHeader ( )
Extract a token from a request object.
Extract a token from a request object .
"""
        Extract a token from a request object.
        """
self
request
refresh_token