sanic_jwt/authentication.py
def _get_token_from_cookies(self, request, refresh_token):
        """
        Extract the token if present inside the request cookies.
        """
        if refresh_token:
            cookie_token_name_key = "cookie_refresh_token_name"
        else:
            cookie_token_name_key = "cookie_access_token_name"
        cookie_token_name = getattr(self.config, cookie_token_name_key)
        token = request.cookies.get(cookie_token_name(), None)
        if not refresh_token and self.config.cookie_split() and token:
            signature_name = self.config.cookie_split_signature_name()
            token += "." + request.cookies.get(signature_name, "")
        return token

        Extract the token if present inside the request cookies.
        
Extract the token if present inside the request cookies.
Extract the token if present inside the request cookies .
def _get_token_from_cookies(self, request, refresh_token):
        if refresh_token:
            cookie_token_name_key = "cookie_refresh_token_name"
        else:
            cookie_token_name_key = "cookie_access_token_name"
        cookie_token_name = getattr(self.config, cookie_token_name_key)
        token = request.cookies.get(cookie_token_name(), None)
        if not refresh_token and self.config.cookie_split() and token:
            signature_name = self.config.cookie_split_signature_name()
            token += "." + request.cookies.get(signature_name, "")
        return token
def _get_token_from_cookies ( self , request , refresh_token ) : if refresh_token : cookie_token_name_key = "cookie_refresh_token_name" else : cookie_token_name_key = "cookie_access_token_name" cookie_token_name = getattr ( self . config , cookie_token_name_key ) token = request . cookies . get ( cookie_token_name ( ) , None ) if not refresh_token and self . config . cookie_split ( ) and token : signature_name = self . config . cookie_split_signature_name ( ) token += "." + request . cookies . get ( signature_name , "" ) return token
Extract the token if present inside the request cookies.
Extract the token if present inside the request cookies .
"""
        Extract the token if present inside the request cookies.
        """
self
request
refresh_token