public function afterAuthentication()
 {
     //auth succesfull. Make sure nonce cannot be re-used to prevent replay attacks.
     $this->nonce->markAsUsed();
     parent::afterAuthentication();
 }