diff options
author | Vitaly Takmazov | 2020-02-27 14:00:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-02-27 14:01:01 +0300 |
commit | 6d177fbb3e57409b223e835eabc79009a89a1031 (patch) | |
tree | 5144cf89e6095c8ec693a771dd284fc3cce11d6e /src/main/java/com/juick/model | |
parent | 8f3a101df251de5965ca28086974c2c10f60c6d9 (diff) |
API: handle existing Google user flow
Diffstat (limited to 'src/main/java/com/juick/model')
-rw-r--r-- | src/main/java/com/juick/model/AuthResponse.java (renamed from src/main/java/com/juick/model/Auth.java) | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/com/juick/model/Auth.java b/src/main/java/com/juick/model/AuthResponse.java index 45185ace..b229c7ac 100644 --- a/src/main/java/com/juick/model/Auth.java +++ b/src/main/java/com/juick/model/AuthResponse.java @@ -17,14 +17,18 @@ package com.juick.model; +import com.juick.server.api.Users; + /** * Created by vt on 09/02/16. */ -public class Auth { +public class AuthResponse { + private final Users.SecureUser user; private final String account; private final String authCode; - public Auth(String account, String authCode) { + public AuthResponse(Users.SecureUser user, String account, String authCode) { + this.user = user; this.account = account; this.authCode = authCode; } @@ -36,4 +40,8 @@ public class Auth { public String getAuthCode() { return authCode; } + + public Users.SecureUser getUser() { + return user; + } }
\ No newline at end of file |