From 1f537ba1b9f9d38b49e7db117060598280056977 Mon Sep 17 00:00:00 2001 From: Piotr Kozimor Date: Tue, 10 Aug 2021 10:42:48 +0200 Subject: [PATCH] Return only session id in CreateSession in UserInternalAPI --- userapi/api/api.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/userapi/api/api.go b/userapi/api/api.go index ee58ac007..c04253060 100644 --- a/userapi/api/api.go +++ b/userapi/api/api.go @@ -50,7 +50,7 @@ type UserInternalAPI interface { QueryDeviceInfos(ctx context.Context, req *QueryDeviceInfosRequest, res *QueryDeviceInfosResponse) error QuerySearchProfiles(ctx context.Context, req *QuerySearchProfilesRequest, res *QuerySearchProfilesResponse) error QueryOpenIDToken(ctx context.Context, req *QueryOpenIDTokenRequest, res *QueryOpenIDTokenResponse) error - CreateSession(context.Context, *CreateSessionRequest, *Session) error + CreateSession(context.Context, *CreateSessionRequest, *CreateSessionResponse) error ValidateSession(context.Context, *ValidateSessionRequest, struct{}) error GetThreePidForSession(context.Context, *SessionOwnership, *GetThreePidForSessionResponse) error DeleteSession(context.Context, *SessionOwnership, struct{}) error @@ -350,6 +350,13 @@ const ( type CreateSessionRequest struct { ClientSecret, NextLink, ThreePid string + Extra []string + SendAttempt int + SessionType ThreepidSessionType +} + +type CreateSessionResponse struct { + Sid string } type ValidateSessionRequest struct {