def _get_token_from_cookies(self, request, refresh_token):
if refresh_token:<EOL><INDENT>cookie_token_name_key = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>cookie_token_name_key = "<STR_LIT>"<EOL><DEDENT>cookie_token_name = getattr(self.config, cookie_token_name_key)<EOL>return request.cookies.get(cookie_token_name(), None)<EOL>
Extract the token if present inside the request cookies.