Method: Oath::Services::Authentication#perform

Defined in:
lib/oath/services/authentication.rb

#performUser, false

Perform the service

Returns:

  • (User)

    if authentication succeeds

  • (false)

    if authentication fails

Since:

  • 0.0.15



19
20
21
22
23
24
25
# File 'lib/oath/services/authentication.rb', line 19

def perform
  if authenticated?
    user
  else
    false
  end
end