protected function generateAuthState()
    {
        $baseString = get_class($this) . '-' . time();
        if (Yii::$app->has('session')) {
            $baseString .= '-' . Yii::$app->session->getId();
        }
        return hash('sha256', uniqid($baseString, true));
    }
protected function generateAuthState()
    {
        $baseString = get_class($this) . '-' . time();
        if (Yii::$app->has('session')) {
            $baseString .= '-' . Yii::$app->session->getId();
        }
        return hash('sha256', uniqid($baseString, true));
    }
protected function generateAuthState ( ) { $ baseString = get_class ( $ this ) . '-' . time ( ) ; if ( Yii :: $ app -> has ( 'session' ) ) { $ baseString .= '-' . Yii :: $ app -> session -> getId ( ) ; } return hash ( 'sha256' , uniqid ( $ baseString , true ) ) ; }
Generates the auth state value.
@return string auth state value.
@since 2.1
Generates the auth state value .