Token workflow for the Friend authentication ring middleware