Package auth contains helpers for managing identities within the GraphQL API.
ErrNotAuthenticated is returned to the client if the user requests an action requiring authentication, and they are not authenticated.
CtxWithUser attaches an Identity to a context.
UserFromCtx retrieves an IdentityCache from the context. If there is no identity in the context, ErrNotAuthenticated is returned. If an error occurs while resolving the identity (e.g. I/O error), then it will be returned.