Forum Academy Marketplace Showcase Pricing Features

Problem with context.keys

Hi all,

I’m quite new to plugin development in bubble so bare with me. I’m trying to write a s3 connection plugin where I need an access key and a secret key. I have defined these in the additional keys section. When testing my plugin I have defined both these fields in the plugins tab and have put these keys in both the access_key field and the access_key (dev) field.
How ever when trying to access these keys I stumble upon an undefined value.


The log outputs ‘undefined’

I also have tried doing console.log(context.keys[‘access-key’]);
Anyone that can help me?

Thanks!

Console log is client side and the context keys is ‘undefined’ because the browser is not allowed to see it.

var Authorization = context.keys[“API Key”];

Define API Key in the Shared tab as Secret

Hi thanks for the quick response,

is this the way you mean it to be?
image

Even without console logging it, it’s still missing. Is this because of the fact that I’m trying to access this key in an element action? Should this be done in an independant action that happens server side?

Kind regards