# 500 Internal Server Error with Passkeys and DiscourseConnect

**URL:** <https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877>\
**Category:** Bug\
**Tags:** passkey, fixed\
**Created:** [August 28, 2024, 9:49pm UTC](https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877 "2024-08-28T21:49:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)\
**Post date:** [August 28, 2024, 9:49pm UTC](https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877/1 "2024-08-28T21:49:15Z")

</div>

I’ve set up [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) where I can log into another app with Discourse.

Everything works when I use passwords, but when I log in to Discourse with a passkey during the flow, I get a `500` error.

 ![Internal server error modal](https://global.discourse-cdn.com/meta/original/4X/e/a/a/eaae2aad9dc5b5b7d5df4c470e7a63bf3315330c.png)

I see a 500 error in the NGINX logs:

```plaintext
POST /session/passkey/auth.json HTTP/2.0

```

and this in the Rails logs:

```plaintext
Started POST "/session/passkey/auth.json" for <ip_address> at 2024-08-28 21:33:32 +0000
Processing by SessionController#passkey_login as JSON
  Parameters: {"publicKeyCredential"=>{"signature"=>"...", "clientData"=>"...", "authenticatorData"=>"...", "credentialId"=>"...", "userHandle"=>"..."}}
start
Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.0ms | Allocations: 4837)
done

```

I’m not sure where else to look for an error message.

Is it a bug, or do I need to do something else to get passkeys to work with [Discourse Connect](https://meta.discourse.org/t/13045?silent=true)?

---

_[View the full topic](https://meta.discourse.org/t/500-internal-server-error-with-passkeys-and-discourseconnect/323877)._
