Server get client tokens

Hi :D How can I make that when a user connects to the server, a script running in the server checks if a token sent by the user is correct. Thanks :3

Answers