Building an Authentication API in Go