<p>Sounds a lot like <a href="https://github.com/craftcms/cms/issues/14745" rel="nofollow noreferrer">this bug</a>, which was fixed in Craft 5.0.1.</p>

CC BY-SA 4.0
2024-04-05T11:21:56.667Z
Timely notice , Thank you!!
shin_develop
CC BY-SA 4.0
2024-04-05T08:05:58.547Z
2024-04-05T08:05:58.547Z
Mats Mikkel Rummelhoff
<p>I'm trying craft5 ,I'm seeing an error with passkey registration.<br />
When I try to save my passkey using FaceID on my iPhone,<br />
&quot;Unable to load the data&quot; pops up in cp.<br />
The passkey seemed to be saved on the device (iPhone) side.<br />
I checked the debug tool bar and found an exception in the CredentialLoader of the WebAuthn module.<br />
here's logs , how solve it?</p>
<pre><code>Webauthn\Exception\InvalidDataException: Unable to create the response object in /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/Exception/InvalidDataException.php:21
Stack trace:
#0 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(188): Webauthn\Exception\InvalidDataException::create()
#1 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(92): Webauthn\PublicKeyCredentialLoader-&gt;createResponse()
#2 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(119): Webauthn\PublicKeyCredentialLoader-&gt;loadArray()
#3 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/services/Auth.php(449): Webauthn\PublicKeyCredentialLoader-&gt;load()
#4 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/controllers/AuthController.php(221): craft\services\Auth-&gt;verifyPasskeyCreationResponse()
#5 [internal function]: craft\controllers\AuthController-&gt;actionVerifyPasskeyCreation()
#6 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#7 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction-&gt;runWithParams()
#8 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller-&gt;runAction()
#9 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(349): yii\base\Module-&gt;runAction()
#10 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(650): craft\web\Application-&gt;runAction()
#11 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(311): craft\web\Application-&gt;_processActionRequest()
#12 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application-&gt;handleRequest()
#13 /home/craft-study/develop/craftcms/web/index.php(12): yii\base\Application-&gt;run()
#14 {main}

Next Webauthn\Exception\InvalidDataException: Unable to load the data in /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/Exception/InvalidDataException.php:21
Stack trace:
#0 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(124): Webauthn\Exception\InvalidDataException::create()
#1 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/services/Auth.php(449): Webauthn\PublicKeyCredentialLoader-&gt;load()
#2 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/controllers/AuthController.php(221): craft\services\Auth-&gt;verifyPasskeyCreationResponse()
#3 [internal function]: craft\controllers\AuthController-&gt;actionVerifyPasskeyCreation()
#4 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#5 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction-&gt;runWithParams()
#6 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller-&gt;runAction()
#7 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(349): yii\base\Module-&gt;runAction()
#8 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(650): craft\web\Application-&gt;runAction()
#9 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(311): craft\web\Application-&gt;_processActionRequest()
#10 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application-&gt;handleRequest()
#11 /home/craft-study/develop/craftcms/web/index.php(12): yii\base\Application-&gt;run()
#12 {main}
</code></pre>

<craft5>
Craft5: Failure to create a passkey
# Craft5: Failure to create a passkey

(Asked by: username_0 on 2024-04-05)

I'm trying craft5 ,I'm seeing an error with passkey registration.
When I try to save my passkey using FaceID on my iPhone,
"Unable to load the data" pops up in cp.
The passkey seemed to be saved on the device (iPhone) side.
I checked the debug tool bar and found an exception in the CredentialLoader of the WebAuthn module.
here's logs , how solve it?
Webauthn\Exception\InvalidDataException: Unable to create the response object in /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/Exception/InvalidDataException.php:21
Stack trace:
#0 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(188): Webauthn\Exception\InvalidDataException::create()
#1 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(92): Webauthn\PublicKeyCredentialLoader->createResponse()
#2 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(119): Webauthn\PublicKeyCredentialLoader->loadArray()
#3 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/services/Auth.php(449): Webauthn\PublicKeyCredentialLoader->load()
#4 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/controllers/AuthController.php(221): craft\services\Auth->verifyPasskeyCreationResponse()
#5 [internal function]: craft\controllers\AuthController->actionVerifyPasskeyCreation()
#6 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#7 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#8 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#9 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(349): yii\base\Module->runAction()
#10 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(650): craft\web\Application->runAction()
#11 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(311): craft\web\Application->_processActionRequest()
#12 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#13 /home/craft-study/develop/craftcms/web/index.php(12): yii\base\Application->run()
#14 {main}

Next Webauthn\Exception\InvalidDataException: Unable to load the data in /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/Exception/InvalidDataException.php:21
Stack trace:
#0 /home/craft-study/develop/craftcms/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialLoader.php(124): Webauthn\Exception\InvalidDataException::create()
#1 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/services/Auth.php(449): Webauthn\PublicKeyCredentialLoader->load()
#2 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/controllers/AuthController.php(221): craft\services\Auth->verifyPasskeyCreationResponse()
#3 [internal function]: craft\controllers\AuthController->actionVerifyPasskeyCreation()
#4 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#5 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#6 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#7 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(349): yii\base\Module->runAction()
#8 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(650): craft\web\Application->runAction()
#9 /home/craft-study/develop/craftcms/vendor/craftcms/cms/src/web/Application.php(311): craft\web\Application->_processActionRequest()
#10 /home/craft-study/develop/craftcms/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#11 /home/craft-study/develop/craftcms/web/index.php(12): yii\base\Application->run()
#12 {main}

**Tags:** craft5

---

## 1 answers

### Answer by username_1 on 2024-04-05. Score: 1 | Accepted answer

Sounds a lot like [this bug](https://github.com/craftcms/cms/issues/14745), which was fixed in Craft 5.0.1.

> **Comments:**
> **username_0**: Timely notice , Thank you!!  

---

