pCloud / pcloud-sdk-php

pCloud SDK for PHP
MIT License
54 stars 22 forks source link

Persistent token ? #4

Closed daslicht closed 3 years ago

daslicht commented 5 years ago

Hi, when I connect my app with pcloud its says :

This code will expire after 600 seconds.

Does that mean I needf to authorioze it again after each 600 seconds?

mircobabini commented 3 years ago

Seems like the answer is "no".

With the current implementation the access tokens given from pCloud API do not expire.

source: https://docs.pcloud.com/methods/oauth_2.0/

sich commented 3 years ago

If you choose to use "code" oAuth 2.0 flow you have to exchange the code for access token in 600 sec. The access token that you will receive doesn't expire.