- The auto refresh was not set correctly because the different was calculated incorrectly. We now re-use the logic from our token expiree.
- Reduce the buffer that is used in the
expires
method to give our refresh functionality more time.
- Clean up the debug information output with more information about the expiree.
- Added error callback for when user denies/declines the oauth.
- Send only the token's value to the Bungie servers instead of the full refresh object.
- Added
diagnostics
integration so we can see what is going on with the auth flow usingDEBUG=bungie-auth*
env variables.
- Call the
fresh
option also when we first receive our tokens so we can actually store that shit.
- Opt-in to
babel-register
compilation by settingbabel-ignore
tofalse
in thepackage.json
- Use the correct window options for electron so that auth window actually displays on top of other windows as it's most likely the most important window in your application at that moment.
- Added missing babel preset & config.
- Added example for cordova (not documented or tested).
- Renamed
browser
toelectron
for electron configuration.
- Initial release.