• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mgmodell / devise_token_auth_multi_email / #6

05 Mar 2026 01:33AM UTC coverage: 12.228% (-78.5%) from 90.717%
#6

push

mgmodell
Merge branch 'master' of github.com:mgmodell/devise_token_auth_multi_email

1 of 1 new or added line in 1 file covered. (100.0%)

1351 existing lines in 24 files now uncovered.

202 of 1652 relevant lines covered (12.23%)

0.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/controllers/devise_token_auth/token_validations_controller.rb
1
# frozen_string_literal: true
2

UNCOV
3
module DeviseTokenAuth
×
UNCOV
4
  class TokenValidationsController < DeviseTokenAuth::ApplicationController
×
UNCOV
5
    skip_before_action :assert_is_devise_resource!, only: [:validate_token]
×
UNCOV
6
    before_action :set_user_by_token, only: [:validate_token]
×
7

UNCOV
8
    def validate_token
×
9
      # @resource will have been set by set_user_by_token concern
UNCOV
10
      if @resource
×
UNCOV
11
        yield @resource if block_given?
×
UNCOV
12
        render_validate_token_success
×
UNCOV
13
      else
×
UNCOV
14
        render_validate_token_error
×
UNCOV
15
      end
×
UNCOV
16
    end
×
17

UNCOV
18
    protected
×
19

UNCOV
20
    def render_validate_token_success
×
UNCOV
21
      render json: {
×
UNCOV
22
        success: true,
×
UNCOV
23
        data: resource_data(resource_json: @resource.token_validation_response)
×
UNCOV
24
      }
×
UNCOV
25
    end
×
26

UNCOV
27
    def render_validate_token_error
×
UNCOV
28
      render_error(401, I18n.t('devise_token_auth.token_validations.invalid'))
×
UNCOV
29
    end
×
UNCOV
30
  end
×
UNCOV
31
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc