Skip to content

Fixed generate_access_token_from_refresh_token #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zcrmsdk/OAuthClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_access_token(self,userEmail):
OAuthLogger.add_log("Exception occured while fetching oauthtoken from db",logging.ERROR,ex)
raise ex
def generate_access_token_from_refresh_token(self,refreshToken,userEmail):
self.refresh_access_token(refreshToken, userEmail)
return self.refresh_access_token(refreshToken, userEmail)
def refresh_access_token(self,refreshToken,userEmail):
if(refreshToken==None):
raise ZohoOAuthException("Refresh token not provided!")
Expand Down Expand Up @@ -267,4 +267,4 @@ def save_oauthtokens(self, oauthtokens):

@abstractmethod
def delete_oauthtokens(self, user_email):
pass
pass