The confirmation mail is sent automatically when a user is created. But I need to send the mail through code manually after completing a few more steps.
I can't able to prevent the confirmation mail from sending.
User model
class User < ActiveRecord::Base
include DeviseTokenAuth::Concerns::User
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
:confirmable
before_create :skip_confirmation_notification!
I am using devise_token_auth with Grape API for rails.
Note: If I try to use skip_confirmation! it works perfectly without any flaw. But I don't need that functionality because I want to confirm the users only through the confirmation link sent to their mail.