Skip to content

Client `fetch_token` throwing `NoMethodError`

Created by: joaolrpaulo

I am currently using this library to fetch tokens from a centralized identifier service.

The problem occurs when the identifier service is unreachable and we are passing the :raise_errors option set to false.

The fetch_token method throws NoMethodError while trying to perform the following code: response.parsed.merge(access_token_opts), because the response.parsed is nil.