wip passkey registration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user