front-end access to the access_token

added method that will return the access_token for front-end use in javascript
do you mean, move the actual get_access_token method that is currently marked private, to the public section of the code?

i’m not sure. i’m not that familiar with ruby yet, but it looks like the method is creating/referring to at least one private variable, @access_token, which could probably become public as well. in any case, i felt the simplest approach would be to created the public access to the method, but i’m to defer to your judgement on this.

my main concern is that i can call get_access_token() from the controller so that i can put the result on the page as JSON output for js use.