Files
AobaV2/AobaServer/Proto/Auth.proto
Amatsugu e223612a08 Auth rpc
Search Bar
Search requests
2025-05-03 22:21:11 -04:00

33 lines
466 B
Protocol Buffer

syntax = "proto3";
option csharp_namespace = "Aoba.RPC.Auth";
package aoba.Auth;
service AuthRpc {
rpc Login(Credentials) returns (LoginResponse);
rpc LoginPasskey(PassKeyPayload) returns (LoginResponse);
}
message Credentials{
string user = 1;
string password = 2;
}
message PassKeyPayload {
}
message Jwt{
string token = 1;
}
message LoginResponse{
oneof result {
Jwt jwt = 1;
LoginError error = 2;
}
}
message LoginError{
string message = 1;
}