README.md in quiz_api_client-2.1.0 vs README.md in quiz_api_client-2.2.0
- old
+ new
@@ -42,10 +42,10 @@
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:
```ruby
client.jwt_service.grant_permission(
- scope: client.quiz_service.scope_build,
+ scope: 'quiz.build',
exp: Time.now.utc.to_i + 60, # some reasonable time, obviously longer is more a security risk
resource_id: 1)
```
### Calling the API