Skip to content

Passing redirectPath a function is broken on oauth2 #480

@yocontra

Description

@yocontra

https://github.com/bnoguchi/everyauth/blob/master/lib/modules/oauth2.js#L305-L310

Does not return this, so the chain is killed. I don't think this works either - this block is confusing and undocumented.

Expected behavior:

  • Return this so you can keep chaining
  • redirectPath function gets passed req and res arguments, and returns a string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions