Where to save the Stripe secret key?

  • ssssadsadasd-1330897368341549097

    ssssadsadasd

    19 days ago

    I want to make a stripe api call. I need the stripe key in the header. but the key should be secret. how can i hide it?
    The AI told me to set the stripe key using the "set session cookies" action but this only allows to set the "access token".
  • sanedealer-1330900129242284042

    Edwin Paul

    19 days ago

    Ideally you'd store it in the backend as an ENV variable. So use a backend solution like buildship, Comnoco or build your own thing through CF Workers or Edge Functions
  • ssssadsadasd-1330900601424314369

    ssssadsadasd

    19 days ago

    @Edwin Paul thanks. I am building edge functions with the help of ai.
    my question is: how can I access the env variable (which is in supabase) in toddle?
  • ssssadsadasd-1330904454480003234

    ssssadsadasd

    19 days ago

    I mean here (see pic). in bubble you can set the field as private key and it wont be accessible from others
    1330904454228213881-image.png
  • lucasg-1330919643208093776

    Lucas G

    19 days ago

    No this call needs to be made from the edge function, not toddle
  • You’ll immediately expose your key if you try to do that
  • ssssadsadasd-1330942161973411900

    ssssadsadasd

    19 days ago

    ah ok was not aware of this. thanks

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.