Skip to content

Separate endpoint url for mailers even if mounting the gem in your own schema #105

@mcelicalderon

Description

@mcelicalderon

Describe the bug

Mailers include a link to be clicked and the base url for these is always fixed to the gem's graphql controller. This won't work when you mount the auth schema in your very own GQL schema.

We need to find a way to capture the currentUrl on the signUp, sendPasswordReset and resendConfirmation mutations.

If anyone is facing an issue with this, until fixed I would recommend also mounting this gem in your routes file. This way the path will be available when you click on the links. You can pass the only option as you only need the query operations available.

mount_graphql_devise_for('User', only: [: check_password_token, : send_password_reset])

The route will be mounted at /graphql_auth but the mailer will pick this up and generate the right url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions