2020-02-02 17:22:38 +00:00
|
|
|
class DeviseOverrides::TokenValidationsController < ::DeviseTokenAuth::TokenValidationsController
|
2020-01-26 19:14:51 +00:00
|
|
|
def validate_token
|
|
|
|
# @resource will have been set by set_user_by_token concern
|
|
|
|
if @resource
|
2022-10-06 00:24:34 +00:00
|
|
|
render 'devise/token', formats: [:json]
|
2020-01-26 19:14:51 +00:00
|
|
|
else
|
|
|
|
render_validate_token_error
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|