How does the Google authentication work?

Basically when I sent an authentication using a Google token, how does nakama verify that token is legit? Does it actually verify it through some api that connects back to Google’s servers?

You can view the source code: