We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca3c94a commit 50e9ccdCopy full SHA for 50e9ccd
app-rails/app/services/auth_service.rb
@@ -3,24 +3,16 @@
3
require "ostruct"
4
5
class AuthService
6
- puts "AuthService class loaded"
7
def initialize(auth_adapter = nil)
8
- puts "HERE????"
9
@auth_adapter = default_adapter
10
end
11
12
def default_adapter
13
- puts Rails.env.development?
14
- puts ENV.key("COGNITO_CLIENT_SECRET")
15
- puts "before if"
16
if Rails.env.development? && (ENV["COGNITO_CLIENT_SECRET"].to_s.empty?)
17
- puts "IN HEWERER"
18
Auth::LocalAdapter.new
19
elsif Rails.env.test?
20
- puts "in test"
21
Auth::MockAdapter.new
22
else
23
- puts "else"
24
Auth::CognitoAdapter.new
25
26
0 commit comments