/** * Logs in a user with a session token. this saves the session to disk, so you can retrieve the * currently logged in user using AVUser.getCurrentUser(). Don't call this method on the UI thread * * @param sessionToken The sessionToken to log in with * @return logined user * @throws AVException login exception */ public static AVUser becomeWithSessionToken(String sessionToken) throws AVException { return becomeWithSessionToken(sessionToken, AVUser.class); }
/** * Logs in a user with a session token. this saves the session to disk, so you * can retrieve the currently logged in user using AVUser.getCurrentUser(). * Don't call this method on the UI thread * @param sessionToken The sessionToken to log in with * @return * @throws AVException */ public static AVUser becomeWithSessionToken(String sessionToken) throws AVException { return becomeWithSessionToken(sessionToken, AVUser.class); }