Skip to content

KoaOAuthServer.prototype.authenticate lack of response #39

Closed
@guojinlong

Description

@guojinlong

KoaOAuthServer.prototype.authenticate = function() {
var server = this.server;

return function *(next) {
var request = new Request(this.request);
var response = new Response(this.response);

try {
  this.state.oauth = {
    token: yield server.authenticate(request,response)
  };
} catch (e) {
  return handleError.call(this, e);
}

yield* next;

};
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions