Replies: 1 comment 1 reply
-
|
Digging into this a bit. Looking at the code, it looks like Lines 242 to 243 in 4f4394c Surprising, but maybe there's a different endpoint I should be using if I want credentials? Still looking |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Ory Kratos with a custom UI. I want to know if the user already has a second factor, so I can show either 'Enable 2FA' or 'Disable 2FA'. My strategy was basically this:
And that works fine, but when I then unlink TOTP (e.g. enable 2FA, then disable 2FA), the
method: "totp"entry still shows up under authentication methods. This makes sense, since that session was indeed authenticated with TOTP, but it means my "Enable 2FA/Disable 2FA" button shows incorrect text.Using
session.identity.credentialsseems promising, but that'sundefinedin my responses (self-hosted), not sure what's going on there, didn't see anything in the API docs to indicate how to set itBeta Was this translation helpful? Give feedback.
All reactions