Give plugins an API/location to store persistent data

It would be useful for plugins to be able to store persistent data, either via an API controlled by Yaak, or simply by providing them a path to a standard filesystem location for doing such.

My use case is that I’m working on a plugin to help authenticate calls via AWS Cognito (I need to support user-password authentication as well as federated IdP). I need to store the access and refresh tokens somewhere so I can handle token expiration and not have to request a new token every time the access is expired or yaak is restarted (especially important for federated IdP, which opens up the user’s browser so they can log in through their configured IdP).

I’m currently using a global variable in the plugin module, which works fine until Yaak is restarted.

I see Tauri has a key-value store available to the frontend. I don’t know if it’s also exposed to the backend, but a simple wrapper around that would work perfectly for me.

Thanks!

Please authenticate to join the conversation.

Upvoters
Status

Backlog

Board

Feedback

Tags

Feature

Date

Over 1 year ago

Author

Étienne Lévesque

Subscribe to post

Get notified by email when there are changes.