Sha256: 088166a41427d9c8880f1b37beb5b155480c2db481a0a481c57f325aba648fd9
Contents?: true
Size: 392 Bytes
Versions: 55
Compression:
Stored size: 392 Bytes
Contents
# frozen_string_literal: true module Motor class SessionsController < ApiBaseController include ActionController::Cookies skip_authorization_check def show render json: { current_user_email: current_user&.email, current_user_id: current_user&.id } end def destroy session.clear cookies.clear head :ok end end end
Version data entries
55 entries across 55 versions & 6 rubygems