See this blog post for more background information about the protocol.
This package provides authentication tokens which can be used in place of the usual session IDs where the user ID is stored in the session data on the server.
Read for more information the API documentation at godoc.org.