diff --git a/social_core/backends/elixir.py b/social_core/backends/elixir.py index ffe0c32f..a4b64f6b 100644 --- a/social_core/backends/elixir.py +++ b/social_core/backends/elixir.py @@ -32,3 +32,14 @@ def get_user_details(self, response): "first_name": first_name, "last_name": last_name, } + + def refresh_token(self, token, *args, **kwargs): + params = "&".join( + f"{param}={value}" + for param, value in self.refresh_token_params(token, *args, **kwargs).items() + ) + url = self.refresh_token_url() + method = self.REFRESH_TOKEN_METHOD + key = "params" if method == "GET" else "data" + request_args = {"headers": self.auth_headers(), "method": method, key: params} + return self.process_refresh_token_response(request, *args, **kwargs)