private void setTokenProperty()

in src/main/java/org/apache/sling/auth/oauth_client/impl/JcrUserHomeOAuthTokenStore.java [147:155]


    private void setTokenProperty(@NotNull User user, @NotNull ValueFactory valueFactory, @NotNull String propertyPath, @Nullable String value) throws RepositoryException {
        if (value != null) {
            user.setProperty(propertyPath, createTokenValue(valueFactory, value));
        } else {
            // TODO: verify if removing the property is the intended behavior in case of null accessToken
            logger.info("Token value is null, removing property {}", propertyPath);
            user.removeProperty(propertyPath);
        }
    }