add share_token detection and split methods to follow SRP
add invalid token tests
Merge branch 'THINK-266-TRN' into THINK-247