Add token generation and verification

Add 2 step device pairing.