Either redirect non-HTTPS requests to HTTPS or set up so that the tokens are created even when the site isn't accessed via HTTPS.