class Doorkeeper::OAuth::ClientCredentialsRequest::Creator

Public Instance Methods

call(client, scopes, attributes = {}) click to toggle source
# File lib/doorkeeper/oauth/client_credentials/creator.rb, line 5
def call(client, scopes, attributes = {})
  AccessToken.find_or_create_for(
    client, nil, scopes, attributes[:expires_in],
    attributes[:use_refresh_token])
end