asciisd / zoho

Zoho package for Laravel
36 stars 37 forks source link

Token expire in hour #29

Closed sanketr43 closed 2 years ago

sanketr43 commented 3 years ago

I have done setup in laravel for this. But I have to do authentication every day. how to persist the token in this. so after once i never have to generate manaully?

aemaddin commented 3 years ago

(configuration section)[https://github.com/asciisd/zoho#configuration]

actually, you don't have to re-authenticate every time, follow the config instruction will create a new file inside the storage directory to hold the token and reuse it.

aemaddin commented 3 years ago

Also please make sure that the file holds both token and refresh token, the refresh token is responsible for renewing the token after expire.

sanketr43 commented 3 years ago

I have done the same configuration as mentioned in the document. But still it won't works.

aemaddin commented 3 years ago

ok, can you check if the file exists or not?

you should found a file on storage/app/zoho/oauth/tokens/zcrm_oauthtokens.txt

also please confirm that the file contains 4 keys and values: refreshToken,accessToken,ExpiryTime, and userEmailId

sanketr43 commented 3 years ago

Yes this all details are available. but still when i call zoho create/update module details next day. it doesn't work unless i do the authentication.

sanketr43 commented 2 years ago

can anyone help?

AliMehraei commented 2 years ago

ExpiryTime

Hi, The problem is solved ? how?

danielfaulknor commented 2 years ago

@AliMehraei check out my comment on #42