Skip to content

Cannot verify token in multiple resolvers #82

@OlivierThielGlady

Description

@OlivierThielGlady

Hi !
Resolvers are run simultaneously and thus, if you are more than one, when calling the verify method from NgHcaptchaService, the second resolver does not complete because the hCaptchaWidgetId variable is already set and the resetHcaptcha method is not called in the first resolver before the second starts (sorry if this is confusing).
The only workaround I found is manually instantiating the service rather than relying on Angular dependency injection mechanism.

Shouldn't the subscriber be completed regardless of the variable state instead ?

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