class Doorkeeper::OAuth::ClientCredentialsRequest::Creator
def call(client, scopes, attributes = {})
def call(client, scopes, attributes = {}) if lookup_existing_token? existing_token = find_existing_token_for(client, scopes) return existing_token if server_config.reuse_access_token && existing_token&.reusable? existing_token&.revoke if server_config.revoke_previous_client_credentials_token end server_config.access_token_model.find_or_create_for( client, nil, scopes, attributes[:expires_in], attributes[:use_refresh_token], ) end