hanko
hanko copied to clipboard
fix: send 401 when passcode is not found instead of 404
closes #240
The frontend reacts here: https://github.com/teamhanko/hanko/blob/5693c90077a2ea4e332f76a679afecab32d6aa81/frontend-sdk/src/lib/client/PasscodeClient.ts#L99 I don't see a big problem going forward with this.
The frontend reacts here:
https://github.com/teamhanko/hanko/blob/5693c90077a2ea4e332f76a679afecab32d6aa81/frontend-sdk/src/lib/client/PasscodeClient.ts#L99
I don't see a big problem going forward with this.
If the handler no longer returns a 404, do we still need to explicitly check for it here:
https://github.com/teamhanko/hanko/blob/5693c90077a2ea4e332f76a679afecab32d6aa81/frontend-sdk/src/lib/client/PasscodeClient.ts#L101
?
The frontend reacts here: https://github.com/teamhanko/hanko/blob/5693c90077a2ea4e332f76a679afecab32d6aa81/frontend-sdk/src/lib/client/PasscodeClient.ts#L99
I don't see a big problem going forward with this.
If the handler no longer returns a 404, do we still need to explicitly check for it here:
https://github.com/teamhanko/hanko/blob/5693c90077a2ea4e332f76a679afecab32d6aa81/frontend-sdk/src/lib/client/PasscodeClient.ts#L101
?
You are right, of course. Fixed.