joola / joola.sdk

Joola's Software Development Kit (SDK)
https://joo.la
Other
3 stars 3 forks source link

Token cannot be defined via the script src tag #177

Closed orweinberger closed 8 years ago

orweinberger commented 9 years ago

While we can use APIToken in the script src tag, i.e.

<script type="text/javascript" src="http://localhost:8080/joola.js?APIToken=apitoken-demo"></script>

We cannot use regular tokens in a similar way (joola.USER is undefined even though the token is valid):

<script type="text/javascript" src="http://localhost:8080/joola.js?token=7HAq8lCSxjOpZQOFGfP2HRke5meP04tq"></script>

When using the joola.init() function I am able to initialize joola with the correct user while using a regular token.