code: def init_app(self, app):
          
          self.init_config(app)
          state = _OAuthClientState(app)
          app.extensions['invenio-oauthclient'] = state
          return state
docs: Flask application initialization.