graphql-devise / graphql_devise

GraphQL interface on top devise_token_auth
MIT License
200 stars 39 forks source link

Add register mutation and alternate confirmation flow #185

Closed mcelicalderon closed 3 years ago

mcelicalderon commented 3 years ago

Implements a new register mutation as an alternative to sign_up which will be deprecated in the future. Also implements a confirm_account_with_token mutation which confirms a resource by providing a token.

register changes the account confirmation flow. It now takes a confirm_url argument which should be the url of a client application. The confirmation email will include a link to confirm_url with confirmationToken as part of the query string. Then, the client application should use the confirm_account_with_token mutation to confirm the resource if required.

Resolves #184