Open MarkTiedemann opened 9 months ago
Currently, this module always opens a new Deno.Kv instance.
Deno.Kv
https://github.com/denoland/deno_kv_oauth/blob/9dfc2a712ea2288a03b6e7f5875b74f6d75f5124/lib/_kv.ts#L10
Would it make sense to add a kv property to the CreateHelperOptions when calling createHelpers?
kv
CreateHelperOptions
createHelpers
Simply put, Bring Your Own KV. :)
Advantages:
We previously considered doing this and decided not to to make the data only accessible to the module. Let me ask a few more questions internally and get back to you.
Currently, this module always opens a new
Deno.Kv
instance.https://github.com/denoland/deno_kv_oauth/blob/9dfc2a712ea2288a03b6e7f5875b74f6d75f5124/lib/_kv.ts#L10
Would it make sense to add a
kv
property to theCreateHelperOptions
when callingcreateHelpers
?Simply put, Bring Your Own KV. :)
Advantages: