Fix reusing old OAuth tokens stored in Authorizations API
For people who are using hub for a longer time now, hub has stored an OAuth token in Authorizations API with a `note_url` value that is now outdated (e.g. "http://defunkt.io/hub/"). The newer `oauth_app_url` doesn't match that, so the token is not reused. Hub tries to create a new OAuth token with a `note` that says "hub" which fails with a 422 because it already exists. This fixes reusing old OAuth tokens even if the `note_url` doesn't match anymore. Any key with `note` that says "hub" will get reused. Fixes #496
Showing
想要评论请 注册 或 登录