j_angelevski
3 years agoContributor III
Reuse auth token from account in a suggestion property
Hi,
I’m developing a custom snap with basic auth ( user/pass ) account.
The snap includes several suggestion properties that need to use the access token from the account in order to display rele...
- 3 years ago
That’s tricky. You might want to try using a static cache in the connect method that maps the user key to a token value. The connect method would return the cached token if there is one. If it fails, you’d need a way to invalid that cache entry and then obtain a new one to retry with.