Generating a new authentication code programmatically

Oh, I see!
Is there a way to do it in a stateless way (i.e. without having to store anything), or is this the only way to get authenticated correctly?