Extracted js, use Result<T> class
Remove await, get user in sync mode