Class: JwtAuthEngine::ProfilesController

Inherits:
ApplicationController show all
Includes:
Serializable
Defined in:
app/controllers/jwt_auth_engine/profiles_controller.rb

Overview

Profile retrieval endpoint for the authenticated auth model.

Instance Method Summary collapse

Methods included from ResponseRenderable

#render_internal_server_error, #render_success, #render_unauthorized, #render_validation_error

Instance Method Details

#meObject

── GET /me ───────────────────────────────────────────────────────────────



9
10
11
12
13
# File 'app/controllers/jwt_auth_engine/profiles_controller.rb', line 9

def me
  render_success(
    JwtAuthEngine.auth_model_name => serialize_auth_model_instance(current_auth_model_instance)
  )
end