Hi,
I am trying to build a Java web application based on user authentication. I have used the below code.
UserAuthorizer userAuthorizer = UserAuthorizer.newBuilder()
.setClientId(
ClientId.of(clientId, clientSecretKey))
.setScopes(Arrays.asList(scope)).setTokenStore(new MemoryTokensStorage())
//.setAccessType("offline")
.setCallbackUri(URI.create(callbackUrl)).build();
But the user is asked to authenticate every time this logic is called. I assume, setting the access type to "offline" would not ask the user to login every time, until the access token is expired. But I am unable to find such an attribute in this. Please let me know how this can be resolved.
Regards,
Suchitra