Using the GoLang library to login

Hello,
Is there any way to use the go library with serverless functions instead of the auth0 sdk for NextJS authentication with auth0? I have seen that the example uses sessions to i am not sure if that works in combination with serverless functions.
Thanks in advance for any help!