finish scanToken