Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
First off, thanks so much for this package! I started going down this road and then found this and it works great!
The authorize account endpoint is always
This change allows you to call
First off, thanks so much for this package! I started going down this road and then found this and it works great! The authorize account endpoint is always `https://api.backblazeb2.com/b2api/v1/b2_authorize_account`, and won't use the api endpoint returned from the auth request (something like `https://api001.backblazeb2.com/b2_authorize_account`). Thus, this should reference `conf.apiUrl` instead of `this.apiUrl` (which is set during authentication). The first auth request works because this value is initialized as `conf.apiUrl`. This change allows you to call `authorize` multiple times and have it regenerate the auth token successfully
My server is running indefinitely, meaning that the auth token will inevitably expire at some point. According to the backblaze docs, when this 401 expired token happens, it's best to send a re-authentication request: