lib/omniauth/strategies/nexaas_id.rb in omniauth-nexaas_id-0.2.1 vs lib/omniauth/strategies/nexaas_id.rb in omniauth-nexaas_id-0.2.2

- old
+ new

@@ -75,10 +75,10 @@ end def retrieve_emails(id) return unless list_emails? # guard: access endpoint only if allowed emails = access_token.get('/api/v1/profile/emails').parsed - got = email['id'] + got = emails['id'] raise "unexpected id #{got} retrieving e-mails for #{id}" unless got == id emails['emails'] rescue StandardError => err warn(err)