Skip to content

Commit b2f6127

Browse files
committed
Fix office365 True
1 parent 34d3b23 commit b2f6127

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

microsoftgraph/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def exchange_code(self, redirect_uri, code, office365=False):
8787
response = requests.post(self.AUTHORITY_URL + self.account_type + self.TOKEN_ENDPOINT, data=data)
8888
return self._parse(response)
8989

90-
def refresh_token(self, redirect_uri, refresh_token, office365=True):
90+
def refresh_token(self, redirect_uri, refresh_token, office365=False):
9191
"""
9292
9393
Args:
@@ -114,7 +114,7 @@ def refresh_token(self, redirect_uri, refresh_token, office365=True):
114114
response = requests.post(self.AUTHORITY_URL + self.account_type + self.TOKEN_ENDPOINT, data=data)
115115
return self._parse(response)
116116

117-
def set_token(self, token, office365=True):
117+
def set_token(self, token, office365=False):
118118
"""Sets the Token for its use in this library.
119119
120120
Args:
@@ -125,7 +125,7 @@ def set_token(self, token, office365=True):
125125
self.office365_token = token
126126
else:
127127
self.token = token
128-
128+
129129
@token_required
130130
def get_me(self, params=None):
131131
"""Retrieve the properties and relationships of user object.

0 commit comments

Comments
 (0)