diff --git a/native/cpp/CommonCpp/grpc/protos/identity.proto b/native/cpp/CommonCpp/grpc/protos/identity.proto
--- a/native/cpp/CommonCpp/grpc/protos/identity.proto
+++ b/native/cpp/CommonCpp/grpc/protos/identity.proto
@@ -42,7 +42,7 @@
// Answer sent to the user upon reception of the PAKE login attempt,
// containing a sealed envelope with the user's private key (step 2)
bytes pakeCredentialResponse = 1;
- string token = 2;
+ string accessToken = 2;
}
}
@@ -58,12 +58,12 @@
message WalletLoginRequest {
string userID = 1;
string deviceID = 2;
- string walletAddress = 3;
- bytes signedMessage = 4;
+ string siweMessage = 3;
+ bytes siweSignature = 4;
}
message WalletLoginResponse {
- bytes token = 1;
+ string accessToken = 1;
}
// RegisterUser
@@ -110,7 +110,7 @@
message VerifyUserTokenRequest {
string userID = 1;
string deviceID = 2;
- string token = 3;
+ string accessToken = 3;
}
message VerifyUserTokenResponse {
diff --git a/services/identity/src/database.rs b/services/identity/src/database.rs
--- a/services/identity/src/database.rs
+++ b/services/identity/src/database.rs
@@ -11,7 +11,7 @@
use tracing::{error, info};
use crate::opaque::Cipher;
-use crate::token::{AccessToken, AuthType};
+use crate::token::{AccessTokenData, AuthType};
pub struct DatabaseClient {
client: DynamoDbClient,
@@ -108,11 +108,11 @@
self.client.put_item(input).await
}
- pub async fn get_token(
+ pub async fn get_access_token_data(
&self,
user_id: String,
device_id: String,
- ) -> Result