README.md in quiz_api_client-3.2.0 vs README.md in quiz_api_client-4.0.0
- old
+ new
@@ -35,9 +35,13 @@
shared_secret: 'the-api-secret normally stored on the quiz_api account',
protocol: 'http' # Set this to what you need, ideally it's an environment variable
)
```
+### Error Handler
+
+In order to set addition error information in your error handling system, you can set the `error_hander` property of the config. The list of valid values can be found in the `QuizApiClient::Config::ERROR_HANDLERS` constant.
+
### Creation of Tokens
JWTs are created without hitting quiz_api and and they are validated on quiz_api. Tokens are created for a given scope, expiration, and an optional resource_id.
Example, generate a token for building: