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