dropbox-oauth-pkce example does not use SDK for secret store
msssk opened this issue · 1 comments
msssk commented
Your Problem
Trying to learn about storing secrets
Existing Documentation URLs (If applicable)
- https://github.com/stripe/stripe-apps/blob/main/examples/dropbox-oauth-pkce/src/hooks/useSecretStore.tsx
- https://github.com/stripe/stripe-apps/tree/main/examples/secret-store
- https://stripe.com/docs/stripe-apps/store-secrets
- https://stripe.com/docs/api/secret_management
The dropbox-oauth-pkce
example uses Stripe.StripeResource
(which I can't find any documentation for) to make api calls. The secret-store
example uses the simpler Stripe SDK. Which is the best approach and why?
gabrielhurley-stripe commented
Thanks for the report. The stripe.apps.secrets
methods are the preferred way of interacting with secret store. The other method is outdated. Stripe.StripeResource
is an internal utility class from the SDK, and while the usage in that example is valid, is not something we document for general use. I'll add this to our to-do list to update the example.