strava_map/stravauth/stravauth.py
def refresh(self):
        """Refreshes the Bearer Token if the token has expired."""
        
        if self.access_token:
            del self.access_token
        self.refresh_params = {"client_id": self.client_id,
                        "client_secret": self.client_secret,
                        "grant_type": "refresh_token",
                        'refresh_token': self.refresh_token
                        }
        self.r = requests.post("https://www.strava.com/oauth/token", self.refresh_params)
        self.write_creds()
Refreshes the Bearer Token if the token has expired.
Refreshes the Bearer Token if the token has expired.
Refreshes the Bearer Token if the token has expired .
def refresh(self):
        if self.access_token:
            del self.access_token
        self.refresh_params = {"client_id": self.client_id,
                        "client_secret": self.client_secret,
                        "grant_type": "refresh_token",
                        'refresh_token': self.refresh_token
                        }
        self.r = requests.post("https://www.strava.com/oauth/token", self.refresh_params)
        self.write_creds()
def refresh ( self ) : if self . access_token : del self . access_token self . refresh_params = { "client_id" : self . client_id , "client_secret" : self . client_secret , "grant_type" : "refresh_token" , 'refresh_token' : self . refresh_token } self . r = requests . post ( "https://www.strava.com/oauth/token" , self . refresh_params ) self . write_creds ( )
Refreshes the Bearer Token if the token has expired.
Refreshes the Bearer Token if the token has expired .
"""Refreshes the Bearer Token if the token has expired."""
self