public static function clear($name, array $options = []) {
		$defaults = ['clearSession' => true];
		$options += $defaults;

		$params = compact('name', 'options');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			extract($params);
			$config = static::_config($name);
			$session = $config['session'];

			if ($options['clearSession']) {
				$session['class']::delete($session['key'], $session['options']);
			}
			static::adapter($name)->clear($options);
		});
	}
public static function clear($name, array $options = []) {
		$defaults = ['clearSession' => true];
		$options += $defaults;

		$params = compact('name', 'options');

		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			extract($params);
			$config = static::_config($name);
			$session = $config['session'];

			if ($options['clearSession']) {
				$session['class']::delete($session['key'], $session['options']);
			}
			static::adapter($name)->clear($options);
		});
	}
public static function clear ( $ name , array $ options = [ ] ) { $ defaults = [ 'clearSession' => true ] ; $ options += $ defaults ; $ params = compact ( 'name' , 'options' ) ; return Filters :: run ( get_called_class ( ) , __FUNCTION__ , $ params , function ( $ params ) { extract ( $ params ) ; $ config = static :: _config ( $ name ) ; $ session = $ config [ 'session' ] ; if ( $ options [ 'clearSession' ] ) { $ session [ 'class' ] :: delete ( $ session [ 'key' ] , $ session [ 'options' ] ) ; } static :: adapter ( $ name ) -> clear ( $ options ) ; } ) ; }
Removes session information for the given configuration, and allows the configuration's
adapter to perform any associated cleanup tasks.

@param string $name The name of the `Auth` configuration to clear the login information for.
Calls the `clear()` method of the given configuration's adapter, and removes
the information in the session key used by this configuration.
@param array $options Additional options used when clearing the authenticated session. See
each adapter's `clear()` method for all available options. Global options:
- `'clearSession'` _boolean_: If `true` (the default), session data for the
specified configuration is removed, otherwise it is retained.
@return void
@filter
Removes session information for the given configuration and allows the configuration s adapter to perform any associated cleanup tasks .