lib/osso/helpers/auth.rb in osso-0.0.5.pre.eta vs lib/osso/helpers/auth.rb in osso-0.0.5.pre.gamma
- old
+ new
@@ -64,10 +64,10 @@
rescue JWT::DecodeError
false
end
def token
- session['admin_token'] || request.env['HTTP_AUTHORIZATION'] || request.params['admin_token']
+ request.env['admin_token'] || session['admin_token'] || request['admin_token']
end
def chomp_token
return unless request['admin_token'].present?