From b61f03823bcfe28713592dd4d16923894f1912c6 Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Wed, 11 Mar 2015 19:41:36 +0100 Subject: [PATCH] Make the client work for API v1 --- lib/auth0/mixins/initializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth0/mixins/initializer.rb b/lib/auth0/mixins/initializer.rb index f18410c4..fa999e5d 100644 --- a/lib/auth0/mixins/initializer.rb +++ b/lib/auth0/mixins/initializer.rb @@ -21,7 +21,7 @@ def initialize(config) @client_secret = options[:client_secret] @token = obtain_access_token end - self.class.headers "Authorization" => "Bearer #{options[:access_token]}" + self.class.headers "Authorization" => "Bearer #{@token}" end # including initializer in top of klass