This is the same for API v1 and v2. You can find the description here: Returning customers in Redirect flow