I was implementing google sign but i came to this method and this is deprecated show its always return null value
String token = GoogleAuthUtil.getToken(loginActivity, accountName, scopes);
even i used other methods
String token = GoogleAuthUtil.getToken(loginActivity, accountName, scopes, null);
but it still returns null and shows as it is deprecated. Please help how can i get access token