Stripe.js Convert card into Token error

I amusing the Stripe.js action to convert a credit card into a Token.

The error reads: the plugin Stripe.js/ action Convert card into a Stripe token threw the follower error: Your key is invalid, as it contains whitespace

I checked my key and there isn’t any whitespaces.

As anyone ran across this issue?

Found the answer. In the Stripe Js plugin, I had “Bearer” in both the Publishable key field and Auth header field. Removed it from Publishable key and it worked.