diff --git a/examples/user-authentication/backend/src/api/user/ApiLogin.ts b/examples/user-authentication/backend/src/api/user/ApiLogin.ts index 853ff2b..0a4cf41 100644 --- a/examples/user-authentication/backend/src/api/user/ApiLogin.ts +++ b/examples/user-authentication/backend/src/api/user/ApiLogin.ts @@ -12,6 +12,7 @@ export async function ApiLogin(call: ApiCall) { let sso = await UserUtil.createSsoToken(user.uid); call.succ({ - __ssoToken: sso + __ssoToken: sso, + user: user }) } \ No newline at end of file diff --git a/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts b/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts index ddcd494..753fe23 100644 --- a/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts +++ b/examples/user-authentication/backend/src/shared/protocols/user/PtlLogin.ts @@ -1,3 +1,4 @@ +import { CurrentUser } from '../../../models/CurrentUser'; import { BaseConf, BaseRequest, BaseResponse } from '../base'; export interface ReqLogin extends BaseRequest { @@ -7,6 +8,7 @@ export interface ReqLogin extends BaseRequest { export interface ResLogin extends BaseResponse { __ssoToken: string; + user: CurrentUser; } export const conf: BaseConf = {