What happens in the background of the authenticate call provided?

Hi, Iā€™m wondering what happens in the background when the user signs the message provided by Moralis, or where I could see the code. Specifically, I wanted to make sure signing the message actually confirms that the user owns the wallet, is that available?

Wallet signature is stored in the user class and used to verify if the authentication.