app/controllers/dry_auth/api/v1/tokens_controller.rb
# 
# Reset the User's token
#
Reset the User's token
Reset the User ' s token
def destroy
          @user=User.find_by_authentication_token(params[:id])
          if @user.nil?
            Rails.logger.info("Token not found.")
            render status: 404, json: {message: "Invalid token."}
          else
            @user.reset_authentication_token!
            render status: 200, json: {token: params[:id]}
          end
        end
def destroy @user = User . find_by_authentication_token ( params [ :id ] ) if @user . nil? Rails . logger . info ( "Token not found." ) render status : 404 , json : { message : "Invalid token." } else @user . reset_authentication_token! render status : 200 , json : { token : params [ :id ] } end end
Reset the User's token
Reset the User ' s token