auth provider

This commit is contained in:
nquidox 2026-03-20 14:52:22 +03:00
parent 08d8450dac
commit a66873d12d
6 changed files with 432 additions and 0 deletions

19
proto/verify.proto Normal file
View file

@ -0,0 +1,19 @@
syntax = "proto3";
package verifyAuth.v1;
option go_package = "/pkg/verify/v1;verifyV1";
message VerifyTokenRequest {
string sessionToken = 1;
int32 serviceId = 2;
}
message VerifyTokenResponse {
string userUuid = 1;
bool isValid = 2;
int32 accessCode = 3;
}
service AuthService {
rpc VerifyToken(VerifyTokenRequest) returns (VerifyTokenResponse);
}