Revert "feat: implement register Passkey user API v2 (#5873)"

This reverts commit a301c40f9f.
This commit is contained in:
Tim Möhlmann
2023-06-05 18:43:51 +02:00
parent 743c77a729
commit cea0595328
44 changed files with 519 additions and 2530 deletions
-16
View File
@@ -1,16 +0,0 @@
package authz
import (
"context"
"github.com/zitadel/zitadel/internal/errors"
)
// UserIDInCTX checks if the userID
// equals the authenticated user in the context.
func UserIDInCTX(ctx context.Context, userID string) error {
if GetCtxData(ctx).UserID != userID {
return errors.ThrowUnauthenticated(nil, "AUTH-Bohd2", "Errors.User.UserIDWrong")
}
return nil
}