wip passkey registration

This commit is contained in:
2026-04-11 18:56:04 -04:00
parent 4325280020
commit 7a43d5c11f
6 changed files with 70 additions and 13 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import "google/protobuf/empty.proto";
import "Proto/Types.proto";
service AccountRpc {
rpc RegisterPasskey(google.protobuf.Empty) returns (PasskeyRegistrationCreds);
rpc CompletePasskeyRegistration(PasskeyPublicKey) returns (google.protobuf.Empty);
rpc RegisterPasskey(google.protobuf.Empty) returns (PasskeyCredentialCreateOptions);
rpc CompletePasskeyRegistration(PasskeyRegistrationCredentials) returns (google.protobuf.Empty);
}
+13 -3
View File
@@ -121,9 +121,19 @@ message PasskeyPayload {
}
message PasskeyRegistrationCreds{
message PasskeyCredentialCreateOptions{
string challenge = 1;
string userId = 2;
}
message PasskeyRegistrationCredentials{
string id = 1;
string rawId = 2;
string type = 3;
CredentialsClientResponse response = 4;
}
message PasskeyPublicKey{
message CredentialsClientResponse{
string clientDataJSON = 1;
string attestationObject = 2;
string authenticatorData = 3;
}