fhdsl / metricminer

R package that digs up data that matters from APIs, making it dashboard-ready
https://hutchdatascience.org/metricminer/
MIT License
2 stars 0 forks source link

`authorize()` should check if cached credentials already exist #48

Open howardbaik opened 10 months ago

howardbaik commented 10 months ago

Currently, authorize() doesn't check if the user already has cached tokens (sometime in the past) and if they do, then don't show these two questions:

Screenshot 2023-12-06 at 10 56 00 AM

I think we should check for tokens in the cache folder and if it doesn't exist, then display the above questions, but if it does exist, then grab those cached tokens.

cansavvy commented 10 months ago

Yes. This has been a thing I keep noticing but have yet to do anything about it. Thanks for tracking it @howardbaek