Can you migrate passkey information between tenants?
-
I want to let a user log in to one tenant using passkeys.
Then, later, I want to move them to another tenant.
Can I migrate their passkey information as well?
-
Yes. You can do this with the API:
curl -H 'Authorization: ...' https://yourinstance.fusionauth.io/api/webauthn\?userId=00000000-0000-0000-0000-000000000001 > out
Then remove the following:
- id
- insertInstant
- lastUsedInstant
- tenantId
update the userId
And use the import call:
curl -H 'X-FusionAuth-TenantId: newtenantid' -H 'Authorization: ...' https://yourinstance.fusionauth.io/api/webauthn/import -H 'Content-type:application/json' -d '{...}'
-