• Timothy Andrew's avatar
    Convert AccessTokenValidationService into a class. · b303948f
    Timothy Andrew authored
    - Previously, AccessTokenValidationService was a module, and all its  public
    methods accepted a token. It makes sense to convert it to a class which accepts
    a token during initialization.
    
    - Also rename the `sufficient_scope?` method to `include_any_scope?`
    
    - Based on feedback from @rymai
    b303948f
api_guard.rb 5.56 KB